Skip to content

Instantly share code, notes, and snippets.

@denys281
Created February 11, 2014 09:48
Show Gist options
  • Save denys281/8931977 to your computer and use it in GitHub Desktop.
Save denys281/8931977 to your computer and use it in GitHub Desktop.
symfony2 apache2 virtual host (with nginx proxy)
<VirtualHost *:8080>
ServerAdmin [email protected]
ServerName mysite.com
ServerAlias mysite.com
DocumentRoot /home/user/sites/mysite.com/current/web
AssignUserId dev dev
DirectoryIndex index.php
<Directory "/home/user/sites/mysite.com/current/web">
AllowOverride All
Options FollowSymLinks +Indexes
Order allow,deny
Allow from all
</Directory>
CustomLog /home/user/sites/mysite.com/apache-log/access.log combined
ErrorLog /home/user/sites/mysite.com/apache-log/error.log
php_admin_value upload_tmp_dir "/home/user/sites/mysite.com/tmp"
php_admin_value session.save_path "/home/user/sites/mysite.com/tmp"
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 SERVER.IP
RPAFheader HTTP_X_FORWARDED_FOR
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment