Forum Moderators: phranque

Message Too Old, No Replies

newbie has action/serveralias prob

Action, ServerAlias interaction problem

         

Hobsoni

6:44 pm on Jun 24, 2005 (gmt 0)

10+ Year Member



I am trying to install phpCMS on a hosted, shared server running Apache 1.3.

The setup uses AddType and Action (in .htaccess) to map urls like "foo.htm" into "parser/parser.php?file=foo.htm"

Another part uses ServerAlias www.domain.com domain.com to ensure that the domain works with and without the www. This is done in httpd.conf.

Both are working separately, but they dont work together. In short, [domain.com...] serves index.htm without processing it.

index.htm is the first DirectoryIndex entry

Everything else appears OK.

I am now out of my depth! How can I get it working properly?

Thanks for your help.
Ian

Hobsoni

11:30 pm on Jun 26, 2005 (gmt 0)

10+ Year Member



I guess I got no reply because I was not clear...

www.mydomain.com/index.htm works properly
mydomain.com/index.htm works properly
www.mydomain.com/ works properly
mydomain.com/ fails to apply the action so it presents index.htm without procesing it.

"Works properly" means the file index.htm is processed by my php script and produces the expected output.

What is the correct way to get this working?

Thanks.
Ian

jdMorgan

9:34 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ian,

Welcome to WebmasterWorld!

I would suggest posting the relevant portion of your httpd.conf file (with your domain obscured, please) and/or posting this question in a PHP-related forum if you think it's a common installation problem (I don't know). We don't have a lot of traffic back here in the technical forums, so sometimes getting an answer takes a while...

Jim