Welcome! Log In Create A New Profile

Advanced

Re: Nginx Frontend with Apache2 and Drupal6

Francis Daly
September 08, 2012 06:42PM
On Sat, Sep 08, 2012 at 08:16:44PM +0200, Larry P. wrote:

Hi there,

> The site works fine without any issues. The problem is that when
> someone wants to visit the site; it is necessary to enter
> 'example.com/drupal6'. I wish to change it so that a visitor only needs
> to enter 'example.com' to access the drupal site.

So, leave everything as-is, except if the user goes to the root of the
site, they end up at the drupal url?

Add

location = / {
return 301 http://example.com/drupal6;
}

and it should Just Work.

From your config file, you probably want to use "mywebsit.com" up there;
and if the first thing a request to /drupal6 does is redirect you to
/drupal6/, then you should probably use that instead too.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx Frontend with Apache2 and Drupal6

Larry P. September 08, 2012 02:18PM

Re: Nginx Frontend with Apache2 and Drupal6

mike September 08, 2012 02:30PM

Re: Nginx Frontend with Apache2 and Drupal6

Larry P. September 08, 2012 05:34PM

Re: Nginx Frontend with Apache2 and Drupal6

Francis Daly September 08, 2012 06:42PM

Re: Nginx Frontend with Apache2 and Drupal6

Larry P. September 08, 2012 07:36PM

Re: Nginx Frontend with Apache2 and Drupal6

Francis Daly September 08, 2012 07:46PM

Re: Nginx Frontend with Apache2 and Drupal6

Larry P. September 08, 2012 08:36PM

Re: Nginx Frontend with Apache2 and Drupal6

Francis Daly September 09, 2012 05:20AM

Re: Nginx Frontend with Apache2 and Drupal6

Valeriano Cossu September 09, 2012 09:18AM

Re: Nginx Frontend with Apache2 and Drupal6

Larry P. September 09, 2012 09:00AM

Re: Nginx Frontend with Apache2 and Drupal6

Francis Daly September 09, 2012 09:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready