Im new to nginx and im trying to make my first server run. I followed this guide http://evansolomon.me/notes/faster-wordpress-multisite-nginx-batcache/ as im trying to use it for a multisite wordpress site.
Anyway after installing everything i get a 500 Internal server error.
While migrating a site from another server, some strange problem occured.
I use the default configuration for all my drupal sites, but this one doesnt seem to work.
Some image files cause an internal server error - rewrite or internal redirection cycle.
The site does not have a domain, yet, so I am testing with the server ip, which should not be a problem.
When using this configuration for some de
I have pretty much a stock installation of LEMP on Ubuntu server that I was setting up just to host a few static files.
When setting up PHPNuke just for testing purposes, I noticed that I didn't have GD support installed. I had nginx set up with php5-fpm so ran "apt-get install php5-gd" to install the GD support libraries. After that though, nginx broke.
I'm using try_files like this:
http {
server {
error_log /var/log/nginx debug;
listen 127.0.0.1:8080;
location / {
index off
default_type application/octet-stream;
try_files /files1$uri /files2/$uri /files3$uri;
}
}
}
In the error log, it's showing this:
*[error] 15077#0: 45399 rewrite or internal redirection cycle while internally redirecting to "/files
I am very new in rewriting in nginx but although I've spent 2 days reading on forums, I still can't get some Codeigniter rewrites working ...
I'm a little new to Nginx here so bear with me -
I want to rewrite a url like foo.bar.com/newfoo?limit=30 to foo.bar.com/newfoo.php?limit=30.
Seems pretty simple to do it something like this rewrite ^([a-z]+)(.*)$ $1.php$2 last;
The part that I am confused about is where to put it - I've tried my hand at a some location directives but I'm doing it wrong.
Here's my existing virtual host conf
im having difficulties with a relativity simple rewrite rules in nginx config.
All I want to do is, if requested dir or file 'host/my/request/path[/[index.php]]' does not exist, rewrite to 'host/my/request/path.php'
Current rewrite works for:
host
host/
host/my/request/path
But wont work for:
host/my/request/path/
Here is the rewrite part of the config:
location = /(.*)/ {
I am using a test instance of my application on non-standard ports and would like to use nginx to redirect all incoming http requests to https
Here is my nginx config:
I tried the above but Cant seem to get it working : please see below
......
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
listen 9000;
server
im having difficulties with a relativity simple rewrite rules / router in nginx config.
All I want to do is, if requested dir or file 'host/my/request/path[/[index.php]]' does not exist, rewrite to 'host/my/request/path.php'
Current rewrite works for:
host
host/
host/my/request/path
But wont work for:
host/my/request/path/
Here is the rewrite part of the config:
location / {