|
|
`/etc/apache2/sites-enabled/000-default.conf`
|
|
|
|
|
|
```
|
|
|
<VirtualHost v000155.adm.ds.fhnw.ch:80>
|
|
|
ServerAdmin webmaster@localhost
|
|
|
<Location />
|
|
|
Options -Indexes +FollowSymLinks
|
|
|
Require all granted
|
|
|
</Location>
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
|
ProxyPreserveHost On
|
|
|
ProxyRequests Off
|
|
|
ServerName v000155.adm.ds.fhnw.ch
|
|
|
|
|
|
RewriteEngine on
|
|
|
RewriteRule ^/(.*)$ http://localhost:5001/$1 [L,P]
|
|
|
ProxyPassReverse / http://localhost:5001/
|
|
|
</VirtualHost>
|
|
|
|
|
|
<VirtualHost 10.51.6.78:80>
|
|
|
ServerName 10.51.6.78
|
|
|
ServerAdmin webmaster@localhost
|
|
|
|
|
|
<Location />
|
|
|
Options -Indexes +FollowSymLinks
|
|
|
Require all granted
|
|
|
</Location>
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
|
ProxyPreserveHost On
|
|
|
ProxyRequests Off
|
|
|
|
|
|
RewriteEngine on
|
|
|
RewriteRule ^/(.*)$ http://localhost:5000/$1 [L,P]
|
|
|
ProxyPassReverse / http://localhost:5000/
|
|
|
</VirtualHost>
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |