|
<VirtualHost *:80>
|
|
Redirect permanent / https://phalanx.homelinuxserver.org
|
|
</VirtualHost>
|
|
|
|
<VirtualHost _default_:443>
|
|
ServerName https://phalanx.homelinuxserver.org
|
|
ServerAdmin webmaster@localhost
|
|
|
|
DocumentRoot /var/www
|
|
<Directory />
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
</Directory>
|
|
<Directory /var/www/>
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
Alias /htdocs /var/htdocs
|
|
<Directory /var/htdocs>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorDocument 403 /error_pages/404.html
|
|
ErrorDocument 404 /error_pages/404.html
|
|
|
|
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/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>
|