Project

General

Profile

Download (2.28 KB) Statistics
| Branch: | Tag: | Revision:
1182e176 David Sorber
2e26af92 dsorber
<VirtualHost *:80>
1182e176 David Sorber
Redirect permanent / https://phalanx.homelinuxserver.org
2e26af92 dsorber
</VirtualHost>

<VirtualHost _default_:443>
1182e176 David Sorber
ServerName https://phalanx.homelinuxserver.org
2e26af92 dsorber
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
1182e176 David Sorber
Require all granted
2e26af92 dsorber
</Directory>

Alias /htdocs /var/htdocs
<Directory /var/htdocs>
1182e176 David Sorber
Require all granted
2e26af92 dsorber
</Directory>

1182e176 David Sorber
ErrorDocument 403 /error_pages/404.html
ErrorDocument 404 /error_pages/404.html
2e26af92 dsorber
1182e176 David Sorber
CustomLog ${APACHE_LOG_DIR}/access.log combined
2e26af92 dsorber
ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

1182e176 David Sorber
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/phalanx.crt
SSLCertificateKeyFile /etc/apache2/ssl/phalanx.key
SSLProtocol -all +TLSv1.2 +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>

2e26af92 dsorber
</VirtualHost>
1182e176 David Sorber