Forum Moderators: phranque
Am running Apache on Mac OS X. I have set up virtual directories/hosts (I can never remember the correct terminology) such that files stored in my Sites folder are resolved to a nice development URL.
Hence: http://dev.example.com serves up files stored in my username/Sites/vwkombi.com folder.
It all works nicely - include statements are parsed, files such as CSS that are linked relative to root (e.g. src="/main.css") are always fine. Happy days :-)
Here's an excerpt of what I have in httpd.conf
<VirtualHost 127.0.0.1>
DocumentRoot /Users/lloydi/Sites/example.com
ServerName dev.example.com
</VirtualHost>
<Directory "/Users/lloydi/Sites/example.com/">
AllowOverride All
Options FollowSymlinks +Includes
</Directory>
Now - to the problem:
If I try to run the site using THIS address:
http://127.0.0.1/~lloydi/example.com/ it doesn't work quite right.
I get the web page served OK but includes are not working OK - elements are missing [an error occurred while processing this directive]
So, it appears not to be parsing using that address. Why not just use the one that works, I hear you cry! Well, there's more to this (concerning sharing content between Mac and virtual PC). One step at a time though!
Can anyone suggest what I could do to get it working using that 'ugly' URL. That would be greatly appreciated!
[edited by: jdMorgan at 3:58 pm (utc) on May 16, 2005]
[edit reason] Examplified. [/edit]