some question,any help!

Author Message

kevin wei

Tuesday 25 November 2003 1:13:57 am

1. i install ez 3.2.3 on my pc,server details:
apache 1.3 ,php 4.2.0,mysql 3.23,win2k
now 127.0.0.1 is ok but when i click a link like this:
http://127.0.0.1/index.php/content/view/full/48/ ,error response:The server encountered an internal error or misconfiguration and was unable to complete your request.
i have active mod_rewite in apache,what happened?

2. i config httpd.conf for vhost as below:
<VirtualHost 127.0.0.1>
<Directory d:/server/ez/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar)$ index.php

ServerAdmin root@localhost
DocumentRoot d:/server/ez/
ServerName ez.mysrv.srv
</VirtualHost>
but if i input ez.mysrv.srv in browser,it cannot find this server,did i need to install DNS server on my pc?

thanks!

Marco Zinn

Tuesday 25 November 2003 2:53:47 am

Hi,
I think, there is a small difference between Unix and Windows Apache Config about Rewrite Rule.
Try
RewriteRule !\.(gif|css|jpg|png|jar)$ d:/server/ez/index.php
instead of just
RewriteRule !\.(gif|css|jpg|png|jar)$ index.php

For the "name": If you want call your site by using host names, you need a DNS or -as you are probably using a standalone PC- you can find and append the "hosts"-files (not hosts.txt or so, just "hosts"). This is somewhere in your windows directory and you must append a line like
ez.mysrv.srv 127.0.0.1
After that, you should be able to enter your name in your webbrowser. You can test this before, when you enter "ping ez.mysrv.srv" at the DOS prompt, which should show you, that the name is resolved to 127.0.0.1
But -when you use URL-bases sitematching- you do not need names, you can use "localhost" or 127.0.0.1 (which is the same).
Does this help?

Marco
http://www.hyperroad-design.com

kevin wei

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

kevin wei

Tuesday 25 November 2003 11:25:45 pm

i find this caused by this line:
RewriteRule !\.(gif|css|jpg|png|jar)$ d:/server/ez/index.php
if i comment out it ,i can access http://ez.mysrv.srv
but all link like :http://ez.mysrv.srv/ez/index.php/content/view/full/50/
get error:The server encountered an internal error or misconfiguration and was unable to complete your request.

what will i do ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.