Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Laravel 4 nginx configuration
- server {
- server_name www.yourdomain.com;
- access_log /var/www/yourdomain.com/log/access.log;
- error_log /var/www/yourdomain.com/log/error.log;
- root /var/www/yourdomain.com/public;
- index index.php index.html index.htm;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- # With php5-fpm:
- include /opt/nginx/conf/fastcgi_params; #Here you need to point your nginx instalation directory
- fastcgi_pass unix:/var/run/php5-fpm.sock; #Use this config if you are using sock or use fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement