Welcome! Log In Create A New Profile

Advanced

Nginx drupal alias

Posted by karthick62 
Nginx drupal alias
January 19, 2011 06:57AM
Hi,

I am using ubuntu 10.01, nginx 0.7.65 and drupal 6.19

I have drupal multisite set up like /documentroot/globalsite/subsite1 ..... /documentroot/mainsite/subsite.n... I have enabled all the sites using clean-urls provided symbolic links are created for all subdirectories. Its working fine.

Now I want to set up a drupal subdirectory on the documentroot/globalsite/subsite-x .I dont want to give symbolic links for this particular directory. I want to use alias for accessing this directory. am trying to use this.

location /subsite/ {
alias /document/globalsite/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;

}

am trying to get http://localhost/globalsite/subsite to http://localhost/globalsite/subsite/index.php (or install.php)

my setup goes like this

/documentroot/globalsite/sites/localhost.globalsite.subsite# ls
default.settings.php files images modules themes
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 48
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready