Welcome! Log In Create A New Profile

Advanced

Re: Nginx Frontend with Apache2 and Drupal6

Francis Daly
September 08, 2012 07:46PM
On Sun, Sep 09, 2012 at 01:34:13AM +0200, Larry P. wrote:

Hi there,

> I tried your suggestion but I get this error after restarting nginx:
> Restarting nginx: [emerg]: invalid number of arguments in "return"
> directive in /etc/nginx/sites-enabled/default:22.

Ah, my mistake. The nginx version you use doesn't have the same "return"
directive syntax.

rewrite ^ http://mywebsite.com/drupal6/;

instead of the "return" line should probably work. (It still goes inside
the "location = /" block.)

> For clarification, the default behavior has been when a user goes to
> mywebsite.com, the address bar in the browser shows
> mywebsite.com:8080/drupal6/, the content shows but the game doesn't
> work. If a user goes to mywebsite.com/drupal6/, it Just Works.

The addition above should *only* affect a request for
http://mywebsite.com/, and should cause the browser to ask for the
working url.

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: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready