Req help convert apachi2 config to nginx

Hi,

In my organization, we are using Apache2 for serving diff web
applications
such as mediawiki,moodle,redmine,svn,etc.Now we are decided to use Nginx
for the performance.but converting is a big head ache and even searched
in
google and received lots of scripts (apache2nginx,…) but finally no
luck.

My environment is:

Ubuntu-12.04 LTS
Nginx - 1.4.7-1+precise0

Note: Pls find enclosed one sample mediawiki apache2 virtual host file,
can
you anybody help me to convert to nginx config file.if i get an idea, so
that i can try other config files. such as,

1).what are the modules need to be install and how to ?
2).Other settings such as php related settings…?

Regards,
Varad

Hello!

On Wed, Apr 23, 2014 at 01:32:57PM +0530, Varadharajan S wrote:

Nginx - 1.4.7-1+precise0

Note: Pls find enclosed one sample mediawiki apache2 virtual host file, can
you anybody help me to convert to nginx config file.if i get an idea, so
that i can try other config files. such as,

1).what are the modules need to be install and how to ?
2).Other settings such as php related settings…?

This howto article may be a good starting point:

http://nginx.org/en/docs/http/converting_rewrite_rules.html


Maxim D.
http://nginx.org/

Hi,

Thanks for reply.this won’t help my requirement.can you provide some
other,
relevant as per my request ?

Regards,
Varad

Hello!

On Wed, Apr 23, 2014 at 06:25:31PM +0530, Varadharajan S wrote:

Thanks for reply.this won’t help my requirement.can you provide some other,
relevant as per my request ?

The relevant idea, if you didn’t get it, is a follows:

Instead of trying to “convert” something from Apache to nginx,
understand what the Apache configuration does, and then write an
nginx configuration to do this.

In many cases, it might also be a good idea to don’t “convert” at
all, but rather use both Apache and nginx. By using nginx as a
proxy (accelerator, cache, load balancer, to server static files
on some domains/locations) get most of the performance benefits,
while preserving Apache as a well known application server (as
well as preserving some Apache-only things like mod_svn).


Maxim D.
http://nginx.org/