How to run another PHP app in subfolder or subdomain with Perusio's config?

Events happening in the community are now at Drupal community events on www.drupal.org.
rahim123's picture

Hi everyone,

I just started using XCache, which comes with an HTTP admin interface. I can't figure out how to make this work with Nginx+PHP-FPM and Drupal6+Boost with the Perusio config. I tried setting it up in a subdomain, but it just keeps redirecting it to my Drupal site running on the TLD. I don't really care if it's a subdomain or subfolder, but I'd really appreciate a quick tip on how to make it work.

Thanks a lot!

Comments

It might be easier to help

bhosmer's picture

It might be easier to help you if you post your configuration.

Hi bhosmer, thanks for taking

rahim123's picture

Hi bhosmer, thanks for taking a quick look. Here's my nginx/sites-enabled conf file for the working Drupal site:
http://pastebin.com/aJyQPmW6
The rest is all standard Perusio config wizardry. :)

I have the Xcache admin interface with the index.php in /var/www/xcache-admin. I'd prefer to keep it out of the Drupal root, if possible.

Thanks again!

Prefix some locations

perusio's picture

I imagine that you want to access the site as http://example.com/subdir/.

Prefix the / location and all exact location with the subdir.

See here for the drupal.conf file of a Drupal site on a subdirectory subdir:
https://gist.github.com/perusio/5922588

Hi, how does one do this for

Ony's picture

Hi, how does one do this for say, phpmyadmin? I keep getting redirected.

Sites in subdirectory not working

Kristina Katalinic's picture

Hi Perusio
I am using your excellent Nginx configuration for Drupal and its working great for me. However I need to launch a demo site which would resolve at demo.mydomain.example and then it would have a number of independent drupal 7 installations like

demo.mydomain.example/subsite1
demo.mydomain.example/subsite2

I tried using the suggested https://gist.github.com/perusio/5922588 but that does not work as the sites always resolve to demo.mydomain.example and demo.mydomain.example/subsite1 will open but it just gives me a "not found" error from demo.mydomain.example

I also found your response here https://groups.drupal.org/node/39944#comment-674833 but I am new to Nginx and I could certainly use an example that would work for my setup if you'd be so kind to give me one.

Thanks in advance :) And thanks so much for your nginx configuration for drupal on github, I was near ready to give up on Nginx when I found it and, it was soo much help.

Drupal web developer and Search Engine Optimisation consultant at Webmar Design & Development Brisbane, Australia
Google+

Thanks very much for the

rahim123's picture

Thanks very much for the example! I really appreciate it.

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: