Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Local Dev/Live Server SSI & Path Problems
Google
Post new topic Reply to topic
Author Message
natmanu
 
 


Joined: 03 May 2006
Posts: 1

PostPosted: Wed May 03, 2006 10:53 am Reply with quoteBack to top

I'm trying to set up a development server on my computer at home that mirrors my live server. The idea is to build locally using A2T with php and ssi then upload the files to the live server. I will stress that no one is accessing this site from outside my local machine and I'm only hosting one domain so I've not thought about using virtual hosts directives.

The problem I'm having is with paths, if my local root folder is:
c:/apache2triad/htdocs

And my live root folder is:
www.mydomain.com


In my files I would expect to enter for an include
<!--#include virtual="/includes/file.ssi"-->

I expect this to work from the root on both the local and live sites

i.e include location
c:/apache2triad/htdocs/includes/file.ssi
&
www.mydomain.com/includes/file.ssi

This works externally but not locally. I've used the test pages on the A2T Control panel and SSI and PHP tests pages are working fine.
I'm not suer what wrong, is this a path problem or a problem with my httpd.conf file?

I know I need to use this directive in my httpd.conf file

AddType text/html .shtml .html
AddHandler server-parsed .shtml .html


But don't know which of these to use for the directory rules:

either
<Directory /htdocs>
Options +Includes -Indexes +FollowSymLinks
AllowOverride All
</Directory>

Or
<Directory /localhost>
Options +Includes -Indexes +FollowSymLinks
AllowOverride All
</Directory>

Or
<Directory /c:/apache2triad/htdocs>
Options +Includes -Indexes +FollowSymLinks
AllowOverride All
</Directory>


Or do I just need to set up an alias instead such as:

Alias /includes/ "C:/apache2triad/htdocs/includes/"


Please, any help would be appreciated.
TIA
Nat
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT