We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only show index.php but i fixed changing SCRIPT_FILENAME and adding fastcgi_index in my site configuration.
server { access_log /opt/boxen/log/nginx/jubila.access.log main; listen 80; root /Users/eseceve/src/jubila/www; server_name jubila.dev; client_max_body_size 50M; error_page 500 502 503 504 /50x.html; location / { keepalive_timeout 0; include /opt/boxen/config/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/opt/boxen/data/project-sockets/jubila; fastcgi_index index.php; } }
Now i can see http://jubila.dev/index.php and http://jubila.dev/foo.php. But when call http://jubila.dev/some_file.css, .js or images nginx return a "Access denied".
The text was updated successfully, but these errors were encountered:
Fixed with this
server { listen 80; server_name jubila.dev; root /Users/eseceve/src/jubila/www; location ~ \.php$ { #include mime.types; #default_type application/octet-stream; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/opt/boxen/data/project-sockets/jubila; include /opt/boxen/config/nginx/fastcgi_params; fastcgi_index index.php; } }
Use fastcgi only for .php files
Sorry, something went wrong.
Merge pull request #28 from eebs/mongo
b592ef9
Added mongo extension
No branches or pull requests
Only show index.php but i fixed changing SCRIPT_FILENAME and adding fastcgi_index in my site configuration.
Now i can see http://jubila.dev/index.php and http://jubila.dev/foo.php.
But when call http://jubila.dev/some_file.css, .js or images nginx return a "Access denied".
The text was updated successfully, but these errors were encountered: