Skip to content

Instantly share code, notes, and snippets.

@ejoful
Created December 18, 2019 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejoful/e0b13a27ba4f2c4d7a09fc43bd952311 to your computer and use it in GitHub Desktop.
Save ejoful/e0b13a27ba4f2c4d7a09fc43bd952311 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot "/var/www/html/website/run/frontend/web"
ServerName qt.website.com
ErrorLog "logs/website_qt-error.log"
CustomLog "logs/website_qt-access.log" common
<Directory "/var/www/html/website/run/frontend/web">
# use mod_rewrite for pretty URL support
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
# ...other settings...
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/html/website/run/backend/web"
ServerName ht.website.com
ErrorLog "logs/website_ht-error.log"
CustomLog "logs/website_ht-access.log" common
<Directory "/var/www/html/website/run/backend/web">
# use mod_rewrite for pretty URL support
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
# ...other settings...
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment