Quote:
Originally Posted by janoszen
Checklist:
- Did you set the allow from all directive on the directory?
|
- <Directory "/var/www/web">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
The directory I'm trying to access is /var/www/web/guapo/
which should be accounted for by the above settings.
Quote:
Originally Posted by janoszen
- Did you set the directory index properly?
|
DirectoryIndex index.html index.html.var
Quote:
Originally Posted by janoszen
- Do you have a directory index file?
|
-rwxrwSrwx 1 apache apache 7 Nov 13 18:33 index.html
still get 403 Forbidden when I try
Quote:
Originally Posted by janoszen
- Does it work if you unmount the share and place the files locally?
|
Well this is interesting,
if I copy a file from the mount to a directory outside the mount I still can't view it. If I create a new file with the exact same permissions, I can view it fine:
-rw-rw-r-- 1 guapo webdev 14 Nov 16 07:55 index2.html
-rw-rw-r-- 1 guapo webdev 7 Nov 13 18:33 index.html
So this is in /var/www/web/test/ and my mount is now at /var/www/web/guapo/ . I can view index2 created on the machine, I can't view index copied over from the mounted share.
If I unmount the directory and scp over the same file it works like a champ.
Quote:
Originally Posted by janoszen
Now a word of warning. Using this setup you WILL suffer. Apache locks onto some files and Windows won't let you remove them while opened. This will for example unrecoverably mess up your SVN working copy if you attempt a branch switch. (You are using version control, right?)
If you must use Windows, I recommend using some sort of build and deployment mechanism. Apache Ant for example is a most useful tool.
|
Since this is only for personal development I don't mind too much a little pain switching branches. I can turn apache off if/when I need to.
But you bring up a good point this may not be the correct way to go about this. I'm using perforce (not a choice) and I have a working copy syncing to /var/www/web/ . The plan was to have a development copy that I can share with coworkers when I submit my changes each evening, and a working copy that will update everytime I hit ctrl-S. The workflow needs to be scalable so once I set someone up they need to be able to develop without ever sshing into the server.
I'm coming from a mac environment where I could just use vmware to have a working vm of centos running with shared folders. But the new job requires windows and a public hyper-v box for development. Any ideas on how I can hit ctrl-s in the editor and f5 in the browser and see the latest pushed pixel with this setup?
Would ant help me here or, or does it have to be sumbit to perforce server then sync with the dev server each time I want to refresh my changes?