Created
February 11, 2014 09:48
-
-
Save denys281/8931977 to your computer and use it in GitHub Desktop.
symfony2 apache2 virtual host (with nginx proxy)
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
<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