Forums / Install & configuration / webdav setup - virtual localhost

webdav setup - virtual localhost

Author Message

Halvor M

Monday 02 January 2006 3:34:46 pm

I have tried to setup the apache server on my WinXP site using the example in the Documentation section (my EZpath is D:/www/_site) :

NameVirtualHost *:80


<Virtualhost *:80>
  
<Directory "D:/www/_site">
    Options FollowSymLinks Indexes ExecCGI
    AllowOverride None
  </Directory>
  DocumentRoot "D:/www/_site"
RewriteEngine On
RewriteRule .* webdav.php # no leading slash
 ServerAdmin admin@localhost
 ServerName webdav
</VirtualHost>

 

However, my apache server (tried borth 1.3 and 2.0) won't start with that rewrite rule in place... I am currently testing the system locally, which is why I am using localhost settings.

Petter Arneson

Tuesday 03 January 2006 4:22:47 am

Hi!
This is one setup that works for me.
I have set up a subdomain that uses port 85, so the website is reachable as well.

<VirtualHost xx.xx.xx.xx:85>
        <Directory /home/xx/domains/xx.com/public_html>
                Options FollowSymLinks Indexes ExecCGI
                AllowOverride None
        </Directory>
        ServerName www.webdav.xx.com
        ServerAlias www.webdav.xx.com  webdav.xx.com
        ServerAdmin [email protected]
        DocumentRoot /home/xx/domains/xx.com/public_html
        RewriteEngine On
        RewriteRule !\.(css|jar|js|html|htm|php)$ /home/xx/domains/xx.com/public_html/webdav.php
        CustomLog /var/log/httpd/domains/xx.com.85.webdav.bytes bytes
        CustomLog /var/log/httpd/domains/xx.com.85.webdav.log combined
        ErrorLog /var/log/httpd/domains/xx.com.85.webdav.error.log
</VirtualHost>

www.vzt.no

Halvor M

Tuesday 03 January 2006 3:00:21 pm

I tried using this, but it doesnt work either - maybe because I am using XP and I have written somethin in wrong format...