Project

General

Profile

Download (2.29 KB) Statistics
| Branch: | Tag: | Revision:
1a887ea3 David Sorber
<VirtualHost *:80>
b9381291 David Sorber
Redirect permanent / https://phalanx.homelinuxserver.org
1a887ea3 David Sorber
</VirtualHost>

<VirtualHost _default_:443>
b9381291 David Sorber
ServerName https://phalanx.homelinuxserver.org
1a887ea3 David Sorber
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
b9381291 David Sorber
Require all granted
1a887ea3 David Sorber
</Directory>

Alias /htdocs /var/htdocs
<Directory /var/htdocs>
b9381291 David Sorber
Require all granted
1a887ea3 David Sorber
</Directory>

b9381291 David Sorber
ErrorDocument 403 /error_pages/404.html
ErrorDocument 404 /error_pages/404.html
1a887ea3 David Sorber
b9381291 David Sorber
CustomLog ${APACHE_LOG_DIR}/access.log combined
1a887ea3 David Sorber
ErrorLog ${APACHE_LOG_DIR}/error.log

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

b9381291 David Sorber
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

# --- Nextcloud ------------------------------------------------
f92b0d6f David Sorber
Alias /nextcloud/ "/var/www/nextcloud/"
b9381291 David Sorber
<Directory /var/www/nextcloud/>
f92b0d6f David Sorber
Require all granted
b9381291 David Sorber
AllowOverride All
f92b0d6f David Sorber
Options FollowSymLinks MultiViews
b9381291 David Sorber
<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>

f92b0d6f David Sorber
# --- Redmine ---------------------------------------------------
Alias /redmine /var/www/redmine/
<Directory /var/www/redmine/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
PassengerAppRoot /srv/redmine
RailsBaseURI /redmine
</Directory>

1a887ea3 David Sorber
</VirtualHost>