Add apache confs.
This commit is contained in:
parent
ffcf9fefd5
commit
614373e745
|
@ -1,39 +1,16 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName nohix.metanohi.name
|
||||
ServerAlias www.nohix.metanohi.name nohix.lcl
|
||||
ServerAlias www.nohix.metanohi.name
|
||||
ServerAdmin ngws@metanohi.name
|
||||
|
||||
DocumentRoot /home/niels/www/meta/subsites/nohix
|
||||
<Directory /home/niels/www/meta/subsites/nohix/>
|
||||
DocumentRoot /home/niels/prog/metanohi-misc-subsites/nohix
|
||||
<Directory /home/niels/prog/metanohi-misc-subsites/nohix/>
|
||||
Options Indexes Includes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/httpd/nohix.metanohi.name-error.log
|
||||
CustomLog /var/log/httpd/nohix.metanohi.name-access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName nohix.metanohi.name
|
||||
ServerAlias www.nohix.metanohi.name nohix.lcl
|
||||
ServerAdmin ngws@metanohi.name
|
||||
|
||||
DocumentRoot /home/niels/www/meta/subsites/nohix
|
||||
<Directory /home/niels/www/meta/subsites/nohix/>
|
||||
Options Indexes Includes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/httpd/nohix.metanohi.name-error.log
|
||||
CustomLog /var/log/httpd/nohix.metanohi.name-access.log combined
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /home/niels/www/meta/metanohi_server.pem
|
||||
SSLCertificateKeyFile /home/niels/www/meta/metanohi_privatekey.pem
|
||||
SSLCipherSuite HIGH
|
||||
SSLProtocol all -SSLv2
|
||||
ErrorLog ${APACHE_LOG_DIR}/error-nohix.metanohi.name.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access-nohix.metanohi.name.log combined
|
||||
</VirtualHost>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
ErrorDocument 404 /.redirect.php
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
header('Location: http://metanohi.name/projects/');
|
||||
?>
|
|
@ -3,37 +3,14 @@
|
|||
ServerAlias www.old-projects.metanohi.name projects.metanohi.name www.projects.metanohi.name
|
||||
ServerAdmin ngws@metanohi.name
|
||||
|
||||
DocumentRoot /home/niels/www/meta/subsites/projects
|
||||
<Directory /home/niels/www/meta/subsites/projects/>
|
||||
DocumentRoot /home/niels/prog/metanohi-misc-subsites/old-projects
|
||||
<Directory /home/niels/prog/metanohi-misc-subsites/old-projects/>
|
||||
Options Indexes Includes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/httpd/projects.metanohi.name-error.log
|
||||
CustomLog /var/log/httpd/projects.metanohi.name-access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName projects.metanohi.name
|
||||
ServerAlias www.projects.metanohi.name
|
||||
ServerAdmin ngws@metanohi.name
|
||||
|
||||
DocumentRoot /home/niels/www/meta/subsites/projects
|
||||
<Directory /home/niels/www/meta/subsites/projects/>
|
||||
Options Indexes Includes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
LogLevel warn
|
||||
ErrorLog /var/log/httpd/projects.metanohi.name-error.log
|
||||
CustomLog /var/log/httpd/projects.metanohi.name-access.log combined
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /home/niels/www/meta/metanohi_server.pem
|
||||
SSLCertificateKeyFile /home/niels/www/meta/metanohi_privatekey.pem
|
||||
SSLCipherSuite HIGH
|
||||
SSLProtocol all -SSLv2
|
||||
LogLevel warn
|
||||
ErrorLog ${APACHE_LOG_DIR}/error-old-projects.metanohi.name.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access-old-projects.metanohi.name.log combined
|
||||
</VirtualHost>
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
<?php
|
||||
header('content-type: text/plain; charset=utf-8');
|
||||
$fn = $_GET['src'];
|
||||
$f = fopen($fn, 'r');
|
||||
echo fread($f, filesize($fn));
|
||||
fclose($f);
|
||||
?>
|
Loading…
Reference in New Issue