I have not done extensive testing, but these nginx rules seem to work for me so far.
There were a few changes I had to make.
1. The regex likes a leading "/" following the ^
2. The replacement needs to (in general) start with a leading "/"
3. Since some of the captures now contain a leading "/" the ...
Search found 15 matches
- Sun Jan 29, 2012 6:27 am
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
- Sun Jan 29, 2012 3:33 am
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
Garvin,
OK, I figured out why you were able to dl the serendipity.css and wasn't. I actually have both "dodgecountynews.com" and "www.dodgecountynews.com" in my hosts file pointed to the same IP address. So when you tested, you loaded the index.php from the nginx server and that source said to get ...
OK, I figured out why you were able to dl the serendipity.css and wasn't. I actually have both "dodgecountynews.com" and "www.dodgecountynews.com" in my hosts file pointed to the same IP address. So when you tested, you loaded the index.php from the nginx server and that source said to get ...
- Sun Jan 29, 2012 1:10 am
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
Garvin,
I'm going to have to take a break then because I'm not getting it here in either chrome or IE. I'll see what I can figure out and get back. In the mean time would it help to see the nginx config so far?
I'm going to have to take a break then because I'm not getting it here in either chrome or IE. I'll see what I can figure out and get back. In the mean time would it help to see the nginx config so far?
- Sun Jan 29, 2012 12:53 am
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
Garvin,
Its not in DNS yet because the site I'm migrating from on apache is live. I have the target nginx servers IP address in my hosts file like this:
216.105.128.116 dodgecountynews.com
Its not in DNS yet because the site I'm migrating from on apache is live. I have the target nginx servers IP address in my hosts file like this:
216.105.128.116 dodgecountynews.com
- Sat Jan 28, 2012 11:54 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
The commented rewrite below works and the page renders correctly but the rule taken from the apache config does not work. To add to the confusion, browsing "http://xyzabc.com/index.php?url=/serendipity.css" returns the contents of the css file. I don't get it.
location /serendipity.css {
rewrite ...
location /serendipity.css {
rewrite ...
- Sat Jan 28, 2012 11:23 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
I got the serendipity.css to load by adding:
location /serendipity.css {
rewrite serendipity.css http://xyzabc.com/serendipity.css.php permanent;
}
to the nginx config and page renders correctly now but the links don't work so the rewrite rules are not working. I think probably the /serendipity ...
location /serendipity.css {
rewrite serendipity.css http://xyzabc.com/serendipity.css.php permanent;
}
to the nginx config and page renders correctly now but the links don't work so the rewrite rules are not working. I think probably the /serendipity ...
- Sat Jan 28, 2012 10:08 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
It seems the browser is not able to read serendipity.css from the new site and I can't find serendipity.css only serendipity.css.php - Do I need to add some other special rule to nginx config for it?
- Sat Jan 28, 2012 9:16 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
It was just the ";" needed to be escaped, so now I have rules that pass nginx test but the page loads scrambled and links return not found errors so something is still wrong. Here's my nginx rules translated from the generated apache .htaccess file:
rewrite ^serendipity_admin.php$ serendipity_admin ...
rewrite ^serendipity_admin.php$ serendipity_admin ...
- Sat Jan 28, 2012 8:21 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
Yes, and it says:
Testing nginx configuration: [emerg]: invalid number of arguments in "rewrite" directive in /etc/nginx/sites-enabled/100-xyzabc.com.vhost
Testing nginx configuration: [emerg]: invalid number of arguments in "rewrite" directive in /etc/nginx/sites-enabled/100-xyzabc.com.vhost
- Sat Jan 28, 2012 5:18 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
Not to argue, but it looks like they have changed because
A. They don't work, and
B. For example, here's the nginx rule from the article you referenced for the archives location:
rewrite ^/archives([/A-Za-z0-9]+)\.html /index.php?url=/archives/$1.html;
and here's the apache rule the installer of ...
A. They don't work, and
B. For example, here's the nginx rule from the article you referenced for the archives location:
rewrite ^/archives([/A-Za-z0-9]+)\.html /index.php?url=/archives/$1.html;
and here's the apache rule the installer of ...
- Sat Jan 28, 2012 3:23 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
Re: moving to Nginx server
Already tried that one. It didn't work. Its from 2008 so its possible the rewrite rules changed since?
thanks,
Keith
thanks,
Keith
- Sat Jan 28, 2012 12:08 pm
- Forum: Installation
- Topic: moving to Nginx server
- Replies: 19
- Views: 25372
moving to Nginx server
Has anyone got the latest version of s9y working with nginx? I transfered an s9y site to a different server running debian linux, nginx and php5-fpm and upgraded the site to the latest version of s9y. The content is there at least partially but most links give a not found error. Found several ...
- Fri Feb 26, 2010 9:31 pm
- Forum: General discussions
- Topic: Sphinx
- Replies: 4
- Views: 2764
Re: Sphinx
Sorry about the double post but I see you have some SQL profiling built in already, I'll try using that first and see what we get.
- Fri Feb 26, 2010 4:57 pm
- Forum: General discussions
- Topic: Sphinx
- Replies: 4
- Views: 2764
Re: Sphinx
Thanks Garvin. I assume you don't mean that nobody else has had issues with the database back-end not keeping up with the s9y front end, because our experience has been that with a single database, on the same or different server, (i.e. no mysqlproxy) we have had database latency issues under load ...
- Thu Feb 25, 2010 9:39 pm
- Forum: General discussions
- Topic: Sphinx
- Replies: 4
- Views: 2764
Sphinx
I'm not sure this doesn't belong in development but I'll start it here and someone can tell me or not.
One customer requirement of several of our existing s9y implementations is full text searching. This requirement forced us to rely on the MySQL MyISAM default storage engine because currently, it ...
One customer requirement of several of our existing s9y implementations is full text searching. This requirement forced us to rely on the MySQL MyISAM default storage engine because currently, it ...