| <VirtualHost *:80> |
| ServerName projects.local |
| ServerAdmin dev@community.apache.org |
| |
| ## Vhost docroot |
| DocumentRoot "/var/www/projects.apache.org/site" |
| |
| ## Directories, there should at least be a declaration for /var/www/projects.apache.org/site |
| |
| <Directory "/var/www/projects.apache.org/site"> |
| Options Indexes FollowSymLinks MultiViews ExecCGI |
| AllowOverride None |
| Require all granted |
| DirectoryIndex index.py index.html |
| </Directory> |
| |
| ## Logging |
| ErrorLog "/var/log/apache2/projects_error.log" |
| ServerSignature Off |
| CustomLog "/var/log/apache2/projects_access.log" combined |
| |
| ## Custom fragment |
| AddHandler cgi-script .py |
| |
| # <Location /> |
| # Require ip 140.211.11.75 140.211.11.138 140.211.11.139 140.211.11.140 10.41.0.4 |
| # </Location> |
| |
| <Directory /var/www/projects.apache.org/site/json/> |
| Header set Access-Control-Allow-Origin "*" |
| </Directory> |
| |
| # Use main ASF favicon |
| Redirect /favicon.ico https://apache.org/favicons/favicon.ico |
| |
| </VirtualHost> |