Skip to content

Instantly share code, notes, and snippets.

@fabiofabbrucci
Created January 25, 2012 23:38
Show Gist options
  • Save fabiofabbrucci/1679695 to your computer and use it in GitHub Desktop.
Save fabiofabbrucci/1679695 to your computer and use it in GitHub Desktop.
Vhost e .htaccess
<VirtualHost *:80>
CustomLog /var/www/vhosts/www.abmundi.com/logs/www.abmundi.com-access_log combined
DocumentRoot /var/www/vhosts/www.abmundi.com/httpdocs/current/web/
ServerName www.abmundi.com
ServerAlias abmundi.com www.abmundi.com
### sgcontrol.custom.config.start
DirectoryIndex app.php
ErrorLog /var/www/vhosts/www.abmundi.com/logs/error
### sgcontrol.custom.config.end
</VirtualHost>
-------------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
@fabiofabbrucci
Copy link
Author

<VirtualHost *:80>
ServerAdmin fabio.fabbrucci@gmail.com
ServerName abmundi
DocumentRoot /var/www/ABMundi/web/
DirectoryIndex app_dev.php index.php index.html

<Directory /var/www/ABMundi/web/>
    Options All Indexes FollowSymLinks MultiViews 
            Order allow,deny
            Allow from all
            AllowOverride all   
</Directory>

ErrorLog ${APACHE_LOG_DIR}/abmundi.error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice

CustomLog ${APACHE_LOG_DIR}/abmundi.access.log combined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment