-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapache.conf
More file actions
30 lines (29 loc) · 1004 Bytes
/
apache.conf
File metadata and controls
30 lines (29 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /synoptic /tmp/enhydris-synoptic-root
<Directory /tmp/enhydris-synoptic-root>
Options Indexes
Require all granted
</Directory>
Alias /media /var/opt/enhydris/openmeteo/media
<Directory /var/opt/enhydris/openmeteo/media>
Options Indexes
Require all granted
</Directory>
<LocationMatch "^/(?!(?:synoptic/|cgi-bin/|media/))(.*)$">
ProxyPassMatch "http://localhost:8000"
ProxyPreserveHost On
</LocationMatch>
# Mapserver
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods GET
</Directory>
</VirtualHost>