Tuesday 25 November 2003 10:48:40 pm
thanks marco
i have done these:
1. append 2 line in hosts
127.0.0.1 localhost
127.0.0.1 mysrv.srv
127.0.0.1 ez.mysrv.srv restart win2k
2. modify httpd.conf
<VirtualHost 127.0.0.1>
<Directory d:/server/ez/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None </Directory>
RewriteEngine On RewriteRule !\.(gif|css|jpg|png|jar)$ d:/server/ez/index.php
ServerAdmin root@localhost
DocumentRoot d:/server/ez/
ServerName ez.mysrv.srv
</VirtualHost> restart apache
now ping mysrv.srv it's ok ping ez.mysrv.srv it's ok
but in browser: http://mysrv.srv/,http://127.0.0.1, http://ez.mysrv.srv
all get response:
Forbidden You don't have permission to access / on this server. why i add only a virtual host to d:/server/ez ,i cannot access server root (d:/server) with mysrv.srv BTW, i just rename .htaccess_root to .htaccess in ez,and some info about DB in site.ini,do i need to modify any other file ?
thanks1
|