Posted by scottm316 on March 22, 2013 at 10:38pm
Hi.
I posted a nginx question with some configs in the drupal.org post-installation forum. Would anybody have a few minutes to review the config I posted and tell me if they see anything blatently wrong? I simply cannot get clean URLs to work. The config I'm adapting is the boost one, and to note may be that the last commit to that repo was over 3 years ago so maybe there's something new?
So far nginx has proved its worth in speed alone; and I "enjoy" the configuration files compared to apache even if I don't understand them as well yet. I'm a newb, so ANY advice would be very appreciated, researched, and hopefully, incorporated. Go ahead, comment!
Comments
Turns out
The clean URL test page would constantly fail and I would revisit my nginx configuration and learn a little more.
If you actually visit the clean URL test page with a clean URL (ie. yoursite.com/admin/config/search/clean-urls) everything works fine. The test fails on the dirty URL but they are actually working. Make your own clean URL and visit said page. Enable. Be done.
At least now I have my own customized bleeding edge nginx server and I learned how awesome nginx is! Hope this helps someone!
@ scottm316, thank you. Very
@ scottm316, thank you. Very simple solution that also helped me.
My full steps:
1. updated the nginx config file for vhost using: http://wiki.nginx.org/Drupal and reloaded nginx
2. removed comment in .htaccess file in Drupal installation from this line:
RewriteBase /
3. visited the clean URL test page with a manually entered clean URL (ie. yoursite.com/admin/config/search/clean-urls) and turned clean URLs on
My Repo
I've since made my beginner config generic enough to share on github. Feedback, comments and questions are always welcome! It's a scaled down version of perusio's but still has most of the options available in comments.
View on github
Like I said, feedback welcome!
Have you tried perusio's
Have you tried perusio's config yet? It's far more and more recently developed than yhager's, and should work with Boost and clean URLs just fine.
The Boise Drupal Guy!
Yes I tried it and it didn't
Yes I tried it and it didn't work. I have no "upstream" to pass requests to as I was only configuring it on one server. My config uses unix sockets for which there are no examples so I had to adapt a socket implementation and doing so decided to make a repo of it.
The microcaching stuff is also commented out. I added Drupal 6 and some other tweaks and will update the github repo this weekend with some improvements.