Forum Moderators: phranque

Message Too Old, No Replies

Setting up Apache2 for testing at home

Having problem with virtual includes

         

RoseMarie

9:44 pm on Nov 1, 2003 (gmt 0)

10+ Year Member



I am in the process of setting up Apache 2 on my home xp. I want to be able to test my scripts/web pages and work out the bugs prior to uploading to my paid hosting service.

I am having problems with the virutal include.

This is the html that I use and that works on my paid hosting: <!--#include virtual="/include/menu.htm" -->

But when I look at it at home, I have to remove the / before the include/menu.htm to make it work.

Does anyone have a suggestion how to fix this. I don't want to have to remove all of the /'s to make them work at home and then have to add them back in to upload to the paid hosting server.

Thanks for your help,
RoseMarie

jdMorgan

10:13 pm on Nov 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



RoseMarie,

Somewhere in the server configuration, you have told Apache where the files for your web site are located. It is probable that they are not located at the hard drive root directory "c:", but rather somewhere below there.

That line in the config file is what needs to change to make Apache behave as if "/file" is the same as "file".

Jim

RoseMarie

10:41 pm on Nov 1, 2003 (gmt 0)

10+ Year Member



I checked the httpd.conf file and this is the directory that I have set up.

<Directory "C:/web/mycustomerwebfolder.com">
Options FollowSymLinks ExecCGI +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .shtml
Order allow,deny
Allow from all
AllowOverride None
</Directory>

I was thinking that maybe I had an extra slash/ behind the mycustomerwebfolder.com but I didn't. Where else should I look?

Thanks for the help,
RoseMarie

jdMorgan

11:57 pm on Nov 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried:

<Directory "C:/web/mycustomerwebfolder.com/">

I'm just guessing here, and hoping someone who has configured Apache2.0 under Windows will drop in... :)

Jim

RoseMarie

12:18 am on Nov 2, 2003 (gmt 0)

10+ Year Member



I went ahead and removed the /'s prior to the folder name on a web page and uploaded it just to see what it would do. To my surprise it worked! I don't know why... But it makes me happy.

Thanks for your help and ideas. Now I am off to figure out how to make sendmail work.

RoseMarie