Welcome! Log In Create A New Profile


Nginx drupal alias

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

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_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: 115
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