-
-
Save patrickallaert/d2d1dfa4042a91e2f3d6 to your computer and use it in GitHub Desktop.
Documentation for 5.0/5.1 on https://confluence.ez.no/display/EZP/Virtual+host+example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Give direct access to robots.txt for use by crawlers (Google, | |
# Bing, Spammers..) | |
RewriteRule ^/robots\.txt - [L] | |
# Platform for Privacy Preferences Project ( P3P ) related files | |
# for Internet Explorer | |
# More info here : http://en.wikipedia.org/wiki/P3p | |
RewriteRule ^/w3c/p3p\.xml - [L] | |
# Uncomment the following lines when using popup style debug in legacy | |
#RewriteRule ^/var/([^/]+/)?cache/debug\.html.* - [L] | |
# Following rule is needed to correctly display assets from eZ Publish5 / Symfony bundles | |
RewriteRule ^/bundles/ - [L] | |
+ | |
+ # For dev/debug environment, you might want to use the 'development' front controller. | |
+ # Uncomment the 'RewriteRule' line below to use it. | |
+ # The following example 'RewriteCond' lines can be used in combination to conditionally use it. | |
+ #RewriteCond %{HTTP_HOST} = dev.example.com [OR] | |
+ #RewriteCond %{HTTP_HOST} = dev.admin.example.com | |
+ #RewriteRule .* /index_dev.php [L] | |
+ | |
+ # Redirect all requests to the 'production' front controller | |
RewriteRule .* /index.php | |
</IfModule> | |
DocumentRoot /var/www/example/web | |
ServerName www.example.com | |
ServerAlias admin.example.com | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment