Revision b9381291
Added by David Sorber about 4 years ago
| configs/phalanx/apache/main.conf | ||
|---|---|---|
|
<VirtualHost *:80>
|
||
|
Redirect permanent / https://10.0.0.6
|
||
|
Redirect permanent / https://phalanx.homelinuxserver.org
|
||
|
</VirtualHost>
|
||
|
|
||
|
<VirtualHost _default_:443>
|
||
|
ServerName https://10.0.0.6:443
|
||
|
ServerName https://phalanx.homelinuxserver.org
|
||
|
ServerAdmin webmaster@localhost
|
||
|
|
||
|
DocumentRoot /var/www
|
||
| ... | ... | |
|
<Directory /var/www/>
|
||
|
Options Indexes FollowSymLinks MultiViews
|
||
|
AllowOverride None
|
||
|
Require all granted
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
Alias /htdocs /var/htdocs
|
||
|
<Directory /var/htdocs>
|
||
|
Require all granted
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
#WSGIScriptAlias /bfcs /home/dsorber/bfcs/app.wsgi
|
||
|
|
||
|
ErrorDocument 403 /error_pages/404.html
|
||
|
ErrorDocument 404 /error_pages/404.html
|
||
|
ErrorDocument 403 /error_pages/404.html
|
||
|
ErrorDocument 404 /error_pages/404.html
|
||
|
|
||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
|
|
||
|
# Possible values include: debug, info, notice, warn, error, crit,
|
||
|
# alert, emerg.
|
||
|
LogLevel warn
|
||
|
|
||
|
SSLEngine On
|
||
|
SSLCertificateFile /etc/apache2/ssl/baranovich.crt
|
||
|
SSLCertificateKeyFile /etc/apache2/ssl/baranovich.key
|
||
|
SSLProtocol -all +TLSv1.2
|
||
|
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||
|
SSLEngine On
|
||
|
SSLCertificateFile /etc/apache2/ssl/phalanx.crt
|
||
|
SSLCertificateKeyFile /etc/apache2/ssl/phalanx.key
|
||
|
SSLProtocol -all +TLSv1.3
|
||
|
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||
|
|
||
|
# --- Redmine ---------------------------------------------------
|
||
|
PassengerAppRoot /srv/redmine
|
||
|
RailsBaseURI /redmine
|
||
|
Alias /redmine /var/www/redmine
|
||
|
<Directory /var/www/redmine>
|
||
|
Options Indexes FollowSymLinks MultiViews
|
||
|
AllowOverride None
|
||
|
Order allow,deny
|
||
|
allow from all
|
||
|
RailsBaseURI /redmine
|
||
|
</Directory>
|
||
|
|
||
|
# --- Nextcloud ------------------------------------------------
|
||
|
Alias /nextcloud "/var/www/nextcloud/"
|
||
|
<Directory /var/www/nextcloud/>
|
||
|
Options +FollowSymlinks
|
||
|
AllowOverride All
|
||
|
|
||
|
<IfModule mod_dav.c>
|
||
|
Dav off
|
||
|
</IfModule>
|
||
|
|
||
|
<IfModule mod_headers.c>
|
||
|
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
|
||
|
</IfModule>
|
||
|
|
||
|
SetEnv HOME /var/www/nextcloud
|
||
|
SetEnv HTTP_HOME /var/www/nextcloud
|
||
|
</Directory>
|
||
|
|
||
|
</VirtualHost>
|
||
Long overdue update of phalanx configuration files.