Forum Moderators: phranque
When I try to open a php file, Apache runs the script and returns the output, I want it to return the source. I found several solutions on the web, but none work for me!
My code is as follows, I've commented out the four solutions I've tried so far:
<VirtualHost 192.168.123.145:80>
ServerAdmin *********
ServerName ***.***.***DocumentRoot /var/www/html/***
Alias /site /var/www/html/***
Alias /webdav /var/www/html/***
<Location /webdav>
# php_flag engine off
# ForceType text/plain
# php_value engine off
# php_admin_flag engine off
DAV On
AuthType Basic
AuthName "WebDAV Restricted"
AuthUserFile /var/www/.DAVlogin
<LimitExcept GET OPTIONS>
Require valid-user
</LimitExcept>
</Location>
</virtualhost>
The idea is that url/site runs the script, and url/webdav returns the page source.
Is there anything else I can try? I'm pulling my hair out, any help will be much appreciated!
/Steve