homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
SSI refuses to work for virtual hosts
SSI works fine but not for virtual hosts
Uzil




msg:3544173
 5:30 pm on Jan 9, 2008 (gmt 0)

I've been reading lots of threads about this subject and all cases were a litle different from mine and never the less i did try some new ideas posted in this forum. They did not work so were is help request.
I've made SSI to work, easy, the problem is with virtual hosts. They just do not run SSI. I did include in the virtual hosts option +Includes, addtype and handler, XBitHack on .... Nothing seem to work, and believe me i've try all combinations, or i believe i did. This was not a problem when i practiced in my win box, but now i've got this linux machine and the same steps are not having the same result.
Where should i start looking for the problem?

 

jdMorgan




msg:3544307
 7:51 pm on Jan 9, 2008 (gmt 0)

Anything in the server error log files? ScriptLog files?
Are you testing with simple SSI, like '<!--#echo var="DATE_LOCAL" -->' or are you trying to run .cgi scripts?

Please tell us more about what you've tried and what the results were: How did you test, what were the results, how did those results differ from your expectations? "It doesn't work" tells us nothing.

Thanks,
Jim

Uzil




msg:3545204
 7:11 pm on Jan 10, 2008 (gmt 0)

Sorry if I was not specific enough in my post to be helped.
I got it. Iím newbie with apache. Till now Iíve used somebody else server and that way my life has been easy, everything is setup and running I just needed to upload the code, but now Iím trying to assemble my own server so a lot of my questions might sound silly.
I was looking in the wrong direction.
The problem (apache 1.3.37) is that SSI does not respect the Documentroot set in the virtual container. SSI follows the Documentroot in the general configuration. This behaviour is different from CGI ScriptAlias. ScriptAlias defined in the virtual container is the valid root to CGI and I believed that SSI would follow the same logic, I was wrong!
That way and since all my virtual hosts are /home/whatever/ I set my general documentroot like: DocumentRoot /home/ and that cover everybody.
Donít know if that is the right way t do it but I think I might get away with it.
Thanks all and you jdMorgan.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved