Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerName localdomain.com
- <VirtualHost *:80>
- ServerName api.localdomain.com
- DocumentRoot /var/www/myprojectpath/public
- <Directory "/var/www/myprojectpath">
- DirectoryIndex index.php
- AllowOverride all
- Require all granted
- RewriteEngine On
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php [L]
- RewriteCond %{REQUEST_METHOD} OPTIONS
- RewriteRule ^.*$ - [R=200,L]
- Header set Access-Control-Allow-Origin "*"
- Header set Access-Control-Allow-Methods "HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS"
- Header set Access-Control-Allow-Headers "X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method,Access-Control-Request-Headers, Authorization"
- </Directory>
- SSLCACertificateFile /var/www/myprojectpath/etc/certs/fnmt.cer
- SSLSessionCacheTimeout 600
- SSLOptions +StdEnvVars
- <Location />
- SSLVerifyClient require
- SSLVerifyDepth 5
- </Location>
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" with_cookies
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment