Forum: NGINX Req help convert apachi2 config to nginx

Dd6e9ae52fd4c6f64ecf40827a8e8807?d=identicon&s=25 Varadharajan S (Guest)
on 2014-04-23 10:03
(Received via mailing list)
Attachment: mediawiki.conf (2 KB)
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
A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2014-04-23 12:45
(Received via mailing list)
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 Dounin
http://nginx.org/
Dd6e9ae52fd4c6f64ecf40827a8e8807?d=identicon&s=25 Varadharajan S (Guest)
on 2014-04-23 14:56
(Received via mailing list)
Hi,

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

Regards,
Varad
A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2014-04-23 15:36
(Received via mailing list)
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 Dounin
http://nginx.org/
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.