Project

General

Profile

« Previous | Next » 

Revision 9af489b1

Added by David Sorber about 2 years ago

Updating phalanx apache2 configs. Consolidated everything into
main.conf.

View differences:

configs/phalanx/apache/git.conf
PerlLoadModule Apache2::Redmine
Alias /git /var/www/grack/public
<Location /git>
PassengerBaseURI /git
PassengerAppRoot /var/www/grack
AuthType Basic
AuthName "Redmine git repositories"
Require valid-user
AuthUserFile /dev/null
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
#RedmineDSN "DBI:mysql:database=bitnami_redmine;host=localhost;mysql_socket=/opt/bitnami/mysql/tmp/mysql.sock"
RedmineDSN "DBI:Pg:dbname=redmine;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "PASSWORD_GOES_HERE"
RedmineGitSmartHttp yes
</Location>
<Directory "/var/www/grack/public">
Options None
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
configs/phalanx/apache/main.conf
<VirtualHost *:80>
Redirect permanent / https://phalanx.homelinuxserver.org
Redirect permanent / https://phalanx.homelinuxserver.org
</VirtualHost>
<VirtualHost _default_:443>
ServerName https://phalanx.homelinuxserver.org
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>
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/phalanx.crt
SSLCertificateKeyFile /etc/apache2/ssl/phalanx.key
SSLProtocol -all +TLSv1.3
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
# --- Nextcloud ------------------------------------------------
Alias /nextcloud/ "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
......
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
# --- Redmine ---------------------------------------------------
Alias /redmine /var/www/redmine/
# --- Redmine ---------------------------------------------------
Alias /redmine /var/www/redmine/
<Directory /var/www/redmine/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
......
RailsBaseURI /redmine
</Directory>
</VirtualHost>
# --- Redmine Git ----------------------------------------------
PerlLoadModule Apache2::Redmine
Alias /git /var/www/grack/public
<Location /git>
PassengerBaseURI /git
PassengerAppRoot /var/www/grack
AuthType Basic
AuthName "Redmine git repositories"
Require valid-user
AuthUserFile /dev/null
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
#RedmineDSN "DBI:mysql:database=bitnami_redmine;host=localhost;mysql_socket=/opt/bitnami/mysql/tmp/mysql.sock"
RedmineDSN "DBI:Pg:dbname=redmine;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "SemolinaPilchardPornographicPriestess"
RedmineGitSmartHttp yes
</Location>
<Directory "/var/www/grack/public">
Options None
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
# --- Transmission ---------------------------------------------
ProxyRequests Off
<Location /transmission>
AuthType Digest
AuthName "engine"
AuthDigestProvider file
AuthUserFile /home/dsorber/web_users
Require valid-user
ProxyPass http://192.168.8.6:9565/transmission
ProxyPassReverse http://192.168.8.6:9565/transmission
</Location>
# --- ttyd -----------------------------------------------------
#ProxyRequests Off
<Location /terminal>
ProxyPreserveHost On
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule /terminal/?(.*) "ws://localhost:9772/$1" [P,L]
# ProxyPass /terminal http://localhost:9772/
# ProxyPassReverse /terminal http://localhost:9772/
ProxyPass http://localhost:9772/
ProxyPassReverse http://localhost:9772/
</Location>
</VirtualHost>
configs/phalanx/apache/transmission.conf
ProxyRequests Off
<Location /transmission>
AuthType Digest
AuthName "engine"
AuthDigestProvider file
AuthUserFile /home/dsorber/web_users
Require valid-user
ProxyPass http://192.168.8.6:9565/transmission
ProxyPassReverse http://192.168.8.6:9565/transmission
</Location>

Also available in: Unified diff