Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2010-07-09 04:31:52

eric2007
Member
Registered: 2006-05-25
Posts: 18

Re: How do I map sections to subdomains?

When I change the last line to:
RewriteRule ^(.+)$ index.php?/$1 [QSA]
Every URL at the subdomain, including real and nonexistent ones, produces the same page.

The PHP settings on both subdomain and the real domain are PHP 5 FastCGI with “Extra Web Security” (mod_security) enabled.

The other option for PHP is PHP 5 CGI. Another option, mod_PHP, is greyed out (it requires an account with a private server (Dreamhost PS)).

On the Dreamhost wiki page for mod_security (http://wiki.dreamhost.com/Mod_security) it says:

It is really a bad idea to turn off the Extra Web Security option from the panel […] But occasionally it can be a little too secure and cause an error in your web application. These errors occur because of the default mod_security rules pre-loaded by mod_security from within the servers configuration, and can not be modified easily.

It also says I can disable mod_security for a specific file using .htaccess. Do you think this is related?

Offline

#14 2010-07-09 04:52:19

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: How do I map sections to subdomains?

It may be related, according to this thread regarding DH and CodeIgniter.

I’ve checked how it’s set on my client’s site at DH, and for the subdomain (the one where the php5rp is located), it’s set to PHP5 CGI and Extra Web Security.
The main domain (the one running TXP) is set to PHP5 *FastCGI”.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#15 2010-07-09 06:40:52

eric2007
Member
Registered: 2006-05-25
Posts: 18

Re: How do I map sections to subdomains?

I tried all the permutations of FastCGI/CGI/mod_security, and none of them fixes the issue. What does happen is that when I change the subdomain from PHP5 FastCGI to PHP5 CGI, all URLs at the subdomain produce the same front page. When it’s FastCGI, the front page works but all other URLs produce “No input file specified.”

I am thoroughly confused about why it would work for your client’s Dreamhost account but not mine.

Offline

#16 2010-07-09 15:48:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: How do I map sections to subdomains?

Not sure what could be going on. Most things related to server-side stuf are all magic to me. Feel free to contact me privately and let’s see if I can help you in the backgrounds.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB