Welcome to WebmasterWorld Guest from 54.162.240.235

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache & Nginx

     
1:52 pm on Apr 3, 2013 (gmt 0)

5+ Year Member



Hi,

I recently asked my webhost i.e. rackspace to install nginx on my server and ask him to setup it like that. For static content use nginx for dynamic (php etc...) use apache.

Now I have few question for which I am not able to find answers anywhere so I thought I shud ask here with ppl who know how make things work.

My questions are:

1. will .htaccess continue to work? I mean nginx will ignore it or apache will use it.

2. redirection of php files. Do I need to setup redirection according to nginx or according to apache?
2:34 pm on Apr 27, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



it is most likely that nginx is being used as a reverse proxy for the apache server and to cache static content from the apache server.

1. will .htaccess continue to work? I mean nginx will ignore it or apache will use it.

the apache configuration will remain as before

2. redirection of php files. Do I need to setup redirection according to nginx or according to apache?

nginx will be configured for a proxy pass, which is different from a redirect.
it's more like an internal rewrite, but to another server.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month