mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 04:05:36 +00:00
Add central-only httpd config files to the repo structure.
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName git.sapsailing.com
|
||||
SetEnv GIT_PROJECT_ROOT /home/trac/git
|
||||
SetEnv GIT_HTTP_EXPORT_ALL
|
||||
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
|
||||
ScriptAlias /hooks/ /var/www/cgi-bin/
|
||||
|
||||
<Location /git/ >
|
||||
Options +ExecCGI
|
||||
AuthType Basic
|
||||
AuthName 'Git'
|
||||
AuthUserFile '/etc/httpd/conf/passwd.git'
|
||||
Require valid-user
|
||||
</Location>
|
||||
|
||||
<Directory "/var/www/cgi-bin">
|
||||
AllowOverride None
|
||||
Options FollowSymLinks
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
SetEnvIf User-Agent ".*MSIE.*" \
|
||||
downgrade-1.0 force-response-1.0
|
||||
</VirtualHost>
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName docker.sapsailing.com
|
||||
ProxyPreserveHost on
|
||||
ProxyPass / http://127.0.0.1:5000/
|
||||
ProxyPassReverse / http://127.0.0.1:5000/
|
||||
<Location />
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
AuthName "Docker Registry Authentication"
|
||||
AuthType basic
|
||||
AuthUserFile '/etc/httpd/conf/passwd.git'
|
||||
Require valid-user
|
||||
</Location>
|
||||
# Use separate log files for the SSL virtual host; note that LogLevel
|
||||
# is not inherited from httpd.conf.
|
||||
ErrorLog logs/docker_error_log
|
||||
TransferLog logs/docker_access_log
|
||||
LogLevel warn
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName docker-registry.sapsailing.com
|
||||
ProxyPreserveHost on
|
||||
ProxyPass /v2 http://127.0.0.1:5001/v2
|
||||
ProxyPassReverse /v2 http://127.0.0.1:5001/v2
|
||||
<Location />
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
AuthName "Docker Registry Authentication"
|
||||
AuthType basic
|
||||
AuthUserFile '/etc/httpd/conf/passwd.git'
|
||||
Require valid-user
|
||||
</Location>
|
||||
# Use separate log files for the SSL virtual host; note that LogLevel
|
||||
# is not inherited from httpd.conf.
|
||||
ErrorLog logs/docker_error_log
|
||||
TransferLog logs/docker_access_log
|
||||
LogLevel warn
|
||||
</VirtualHost>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
# sail-insight.com
|
||||
<VirtualHost *:80>
|
||||
ServerName sail-insight.com
|
||||
ServerAlias www.sail-insight.com
|
||||
CustomLog logs/services_log combined env=!original_client_ip
|
||||
CustomLog logs/services_log first_forwarded_for_ip env=original_client_ip
|
||||
Alias / /home/trac/sail-insight-website/
|
||||
<Directory /home/trac/sail-insight-website>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# Content of this file, with correct values, can be automatically added to
|
||||
# your Apache server by using the AWStats configure.pl tool.
|
||||
#
|
||||
|
||||
|
||||
# If using Windows and Perl ActiveStat, this is to enable Perl script as CGI.
|
||||
#ScriptInterpreterSource registry
|
||||
|
||||
|
||||
#
|
||||
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
|
||||
# Note that path "/usr/share/awstats/" must reflect your AWStats install path.
|
||||
#
|
||||
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
|
||||
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
|
||||
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
|
||||
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"
|
||||
|
||||
# Adding access to /var/log/old/cache/unique-ips-per-referrer/stats:
|
||||
Alias /unique-visitors/ "/var/log/old/cache/unique-ips-per-referrer/stats/"
|
||||
|
||||
#
|
||||
# This is to permit URL access to scripts/files in AWStats directory.
|
||||
#
|
||||
<VirtualHost *:80>
|
||||
ServerName awstats.sapsailing.com
|
||||
CustomLog logs/awstats_access_log combined
|
||||
ErrorLog logs/awstats_error_log
|
||||
|
||||
<Directory "/usr/share/awstats/wwwroot">
|
||||
Options None
|
||||
# AllowOverride None
|
||||
# Order allow,deny
|
||||
# Allow from 127.0.0.1
|
||||
AuthType Basic
|
||||
AuthName 'awstats'
|
||||
AuthUserFile /etc/httpd/conf/passwd.awstats
|
||||
Require valid-user
|
||||
</Directory>
|
||||
|
||||
<Directory "/var/log/old/cache/unique-ips-per-referrer/stats/">
|
||||
Options Indexes
|
||||
# AllowOverride None
|
||||
# Order allow,deny
|
||||
# Allow from 127.0.0.1
|
||||
AuthType Basic
|
||||
AuthName 'awstats'
|
||||
AuthUserFile /etc/httpd/conf/passwd.awstats
|
||||
Require valid-user
|
||||
</Directory>
|
||||
# Additional Perl modules
|
||||
<IfModule mod_env.c>
|
||||
SetEnv PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins:/root/perl5/lib/perl5
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName jobs.sapsailing.com
|
||||
CustomLog logs/jobs_log combined env=!original_client_ip
|
||||
CustomLog logs/jobs_log first_forwarded_for_ip env=original_client_ip
|
||||
DocumentRoot /home/trac/static/jobs
|
||||
<Directory /home/trac/static/jobs>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
# P2 repository
|
||||
<VirtualHost *:80>
|
||||
ServerName p2.sapsailing.com
|
||||
CustomLog logs/services_log combined env=!original_client_ip
|
||||
CustomLog logs/services_log first_forwarded_for_ip env=original_client_ip
|
||||
Alias /p2 /home/trac/p2-repositories
|
||||
<Directory /home/trac/p2-repositories>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName bugzilla.sapsailing.com
|
||||
RewriteEngine On
|
||||
RewriteRule ^/?$ http://bugzilla.sapsailing.com/bugzilla [L]
|
||||
CustomLog logs/services_log combined env=!original_client_ip
|
||||
CustomLog logs/services_log first_forwarded_for_ip env=original_client_ip
|
||||
Alias /bugzilla /usr/share/bugzilla
|
||||
<Directory /usr/share/bugzilla>
|
||||
AddHandler cgi-script .cgi
|
||||
Options +Indexes +ExecCGI +FollowSymLinks
|
||||
DirectoryIndex index.cgi
|
||||
AllowOverride Limit Options FileInfo Indexes AuthConfig
|
||||
</Directory>
|
||||
# Additional Perl modules
|
||||
<IfModule mod_env.c>
|
||||
SetEnv PERL5LIB /root/perl5/lib/perl5:/root/perl5/lib/perl5/x86_64-linux-thread-multi
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
|
||||
# Wiki -->
|
||||
<VirtualHost *:80>
|
||||
ServerName wiki.sapsailing.com
|
||||
RewriteEngine on
|
||||
RewriteRule ^/(.*) http://localhost:4567/$1 [P,L]
|
||||
ProxyPassReverse / http://localhost:4567/
|
||||
CustomLog logs/services_log combined env=!original_client_ip
|
||||
CustomLog logs/services_log first_forwarded_for_ip env=original_client_ip
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName releases.sapsailing.com
|
||||
DocumentRoot /home/trac/releases
|
||||
<Directory /home/trac/releases>
|
||||
Options +Indexes +FollowSymLinks
|
||||
</Directory>
|
||||
CustomLog logs/services_log combined env=!original_client_ip
|
||||
CustomLog logs/services_log first_forwarded_for_ip env=original_client_ip
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName static.sapsailing.com
|
||||
DocumentRoot /var/www/static
|
||||
<Directory /var/www/static>
|
||||
Order Deny,Allow
|
||||
Allow from all
|
||||
Options -Indexes +FollowSymLinks -ExecCGI
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
CustomLog logs/services_log combined env=!original_client_ip
|
||||
CustomLog logs/services_log first_forwarded_for_ip env=original_client_ip
|
||||
</VirtualHost>
|
||||
+1
@@ -0,0 +1 @@
|
||||
LoadModule php7_module modules/libphp-7.1.so
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Mod_perl incorporates a Perl interpreter into the Apache web server,
|
||||
# so that the Apache web server can directly execute Perl code.
|
||||
# Mod_perl links the Perl runtime library into the Apache web server
|
||||
# and provides an object-oriented Perl interface for Apache's C
|
||||
# language API. The end result is a quicker CGI script turnaround
|
||||
# process, since no external Perl interpreter has to be started.
|
||||
#
|
||||
|
||||
# Uncomment this line to globally enable warnings, which will be
|
||||
# written to the server's error log. Warnings should be enabled
|
||||
# during the development process, but should be disabled on a
|
||||
# production server as they affect performance.
|
||||
#
|
||||
#PerlSwitches -w
|
||||
|
||||
# Uncomment this line to enable taint checking globally. When Perl is
|
||||
# running in taint mode various checks are performed to reduce the
|
||||
# risk of insecure data being passed to a subshell or being used to
|
||||
# modify the filesystem. Unfortunately many Perl modules are not
|
||||
# taint-safe, so you should exercise care before enabling it on a
|
||||
# production server.
|
||||
#
|
||||
#PerlSwitches -T
|
||||
|
||||
# This will allow execution of mod_perl to compile your scripts to
|
||||
# subroutines which it will execute directly, avoiding the costly
|
||||
# compile process for most requests.
|
||||
#
|
||||
#Alias /perl /var/www/perl
|
||||
#<Directory /var/www/perl>
|
||||
# SetHandler perl-script
|
||||
# PerlResponseHandler ModPerl::Registry
|
||||
# PerlOptions +ParseHeaders
|
||||
# Options +ExecCGI
|
||||
#</Directory>
|
||||
|
||||
# This will allow remote server configuration reports, with the URL of
|
||||
# http://servername/perl-status
|
||||
# Change the ".example.com" to match your domain to enable.
|
||||
#
|
||||
#<Location /perl-status>
|
||||
# SetHandler perl-script
|
||||
# PerlResponseHandler Apache2::Status
|
||||
# Order deny,allow
|
||||
# Deny from all
|
||||
# Allow from .example.com
|
||||
#</Location>
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# The following lines prevent .user.ini files from being viewed by Web clients.
|
||||
#
|
||||
<Files ".user.ini">
|
||||
Require all denied
|
||||
</Files>
|
||||
|
||||
#
|
||||
# Allow php to handle Multiviews
|
||||
#
|
||||
AddType text/html .php
|
||||
|
||||
#
|
||||
# Add index.php to the list of files that will be served as directory
|
||||
# indexes.
|
||||
#
|
||||
DirectoryIndex index.php
|
||||
|
||||
# mod_php options
|
||||
<IfModule mod_php7.c>
|
||||
#
|
||||
# Cause the PHP interpreter to handle files with a .php extension.
|
||||
#
|
||||
<FilesMatch \.php$>
|
||||
SetHandler application/x-httpd-php
|
||||
</FilesMatch>
|
||||
|
||||
#
|
||||
# Uncomment the following lines to allow PHP to pretty-print .phps
|
||||
# files as PHP source code:
|
||||
#
|
||||
#<FilesMatch \.phps$>
|
||||
# SetHandler application/x-httpd-php-source
|
||||
#</FilesMatch>
|
||||
|
||||
#
|
||||
# Apache specific PHP configuration options
|
||||
# those can be override in each configured vhost
|
||||
#
|
||||
php_value session.save_handler "files"
|
||||
php_value session.save_path "/var/lib/php/7.1/session"
|
||||
php_value soap.wsdl_cache_dir "/var/lib/php/7.1/wsdlcache"
|
||||
|
||||
#php_value opcache.file_cache "/var/lib/php/7.1/opcache"
|
||||
</IfModule>
|
||||
|
||||
# Redirect to local php-fpm if mod_php is not available
|
||||
<IfModule !mod_php5.c>
|
||||
<IfModule !mod_php7.c>
|
||||
# Enable http authorization headers
|
||||
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# The following lines prevent .user.ini files from being viewed by Web clients.
|
||||
#
|
||||
<Files ".user.ini">
|
||||
Require all denied
|
||||
</Files>
|
||||
|
||||
#
|
||||
# Allow php to handle Multiviews
|
||||
#
|
||||
AddType text/html .php
|
||||
|
||||
#
|
||||
# Add index.php to the list of files that will be served as directory
|
||||
# indexes.
|
||||
#
|
||||
DirectoryIndex index.php
|
||||
|
||||
# mod_php options
|
||||
<IfModule mod_php7.c>
|
||||
#
|
||||
# Cause the PHP interpreter to handle files with a .php extension.
|
||||
#
|
||||
<FilesMatch \.php$>
|
||||
SetHandler application/x-httpd-php
|
||||
</FilesMatch>
|
||||
|
||||
#
|
||||
# Uncomment the following lines to allow PHP to pretty-print .phps
|
||||
# files as PHP source code:
|
||||
#
|
||||
#<FilesMatch \.phps$>
|
||||
# SetHandler application/x-httpd-php-source
|
||||
#</FilesMatch>
|
||||
|
||||
#
|
||||
# Apache specific PHP configuration options
|
||||
# those can be override in each configured vhost
|
||||
#
|
||||
php_value session.save_handler "files"
|
||||
php_value session.save_path "/var/lib/php/7.1/session"
|
||||
php_value soap.wsdl_cache_dir "/var/lib/php/7.1/wsdlcache"
|
||||
|
||||
#php_value opcache.file_cache "/var/lib/php/7.1/opcache"
|
||||
</IfModule>
|
||||
|
||||
# Redirect to local php-fpm if mod_php is not available
|
||||
<IfModule !mod_php5.c>
|
||||
<IfModule !mod_php7.c>
|
||||
# Enable http authorization headers
|
||||
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user