Forums / Install & configuration / problem with siteaccess / vhost / ie6

problem with siteaccess / vhost / ie6

Author Message

Dominik Stoeppel

Monday 29 December 2003 6:53:09 am

hi,

i have a very strange problem. I installed successfully ez 3.3 on my linux webserver. (Apache 1.3.28, PHP 4.3.3, Mysql 4.0.15 ).
Every things works fine with IE/Netscape :)

After this I change in settings/override/site.ini.append.php
the matchorder to host.

Now i can't login to the admin with Internet Explorer 6 :( , but Netscape 7 has no problems :) . It's the same if I press Login without typing anything to login/password. The page /user/login reloaded.

Security Settings from IE are correct.

hmm, verry strange.

My config files :
->/settings/override/site.ini.append.php
[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=intranet
SiteList[]
SiteList[]=intranet

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=intranet
AvailableSiteAccessList[]=intranet_admin
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=intranet.testserver.local;intranet
HostMatchMapItems[]=intranet_admin.testserver.local;intranet_admin

[MailSettings]
Transport=sendmail
*/ ?>

-> httpd.conf :
.....
NameVirtualHost 192.168.10.20
.....
<VirtualHost 192.168.10.20>
<Directory /home/webserver/htdocs/intranet.testserver.local/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
DocumentRoot "/home/webserver/htdocs/intranet.testserver.local"
ServerName intranet.testserver.local
CustomLog /var/log/httpd/intranet.testserver.local/access.log common
ErrorLog /var/log/httpd/intranet.testserver.local/error.log
LogLevel warn
AgentLog /var/log/httpd/intranet.testserver.local/browser.log
RefererLog /var/log/httpd/intranet.testserver.local/refer.log
</VirtualHost>

<VirtualHost 192.168.10.20>
<Directory /home/webserver/htdocs/intranet.testserver.local/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
DocumentRoot "/home/webserver/htdocs/intranet.testserver.local"
ServerName intranet_admin.testserver.local
CustomLog /var/log/httpd/intranet_admin.testserver.local/access.log common
ErrorLog /var/log/httpd/intranet_admin.testserver.local/error.log
LogLevel warn
AgentLog /var/log/httpd/intranet_admin.testserver.local/browser.log
RefererLog /var/log/httpd/intranet_admin.testserver.local/refer.log

thanks for help :)

dominik

Tim Dickinson

Tuesday 30 December 2003 4:47:39 am

Hey Dominik,

Well I'm not sure if this is the same problem that I had with eZpublish 2.2.8 - but it certainly sounds like it so here's my recommendation:

It has nothing to do with eZ3 - Good News!
In IE6 go to
Tools >> Internet Options
Then click on the Privacy tab and slide the slider all the way down to accept all cookies.
You should then be able to login.

Cheers

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Dominik Stoeppel

Tuesday 30 December 2003 7:46:01 am

hello tim,

thanks for your answer, but that is what I checked first. It's not the problem.

using "uri" mode ,the ie6 has no problems.

Marco Zinn

Saturday 10 January 2004 1:49:27 pm

Hm... strange stuff.
When you cannot log in, this sounds very much like a cookie problem. I didn't try the host mapping setup. Anyone else?
For me, i guess, that the cookie sends some "domain" information and is valid only for that domain.
Then, when you log in, ez sends you a cookie. The next page looks and checks, if you are logged in by checking the session variabled. Usually, this should contain some info on your user from the cookie, but this is only true, if the browser SENDs the cookie, that it got from the ez-server.
And it only sends it, when the cookie has the "right" domain. I think, it must be the domain of the URL, that you try to access.
In your case, i think, you will access the admin site with intranet_admin.testserver.local ... can you check your cookies, if you get some cookie from you ez-server and what it contains?

Either IE6 does something wrong or it is over-cautious, while Netscape is not so restrictive.

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

Mads Buus Jensen

Monday 22 March 2004 5:20:42 am

I have the EXACT same problem changing uri to host mode. ez version is 3.2.3
mozilla/konqueror works fine, but IE6 just flashes the login screen.

Hans Melis

Monday 22 March 2004 5:37:42 am

Hi,

This is just a wild guess I'm doing, but it can't get any worse than not working :)

In IE6, go to Tools > Options > Advanced tab. When you get there, check if "Use HTTP 1.1" is enabled.

I seem to remember reading somewhere that the Host: header is part of HTTP/1.1. And you need the Host: header in HTTP requests or else virtual hosts won't work.

hth

--
Hans

Hans
http://blog.hansmelis.be

Mads Buus Jensen

Monday 22 March 2004 6:19:03 am

SOLVED: IE6 does not support hostnames with underscore charaters (_)

IE6 does not return the cookie to ez when logging.
Why m$ has stopped underscore support in IE6 is beyond me (what does the http standard say?)

This works fine when you remove the underscores, i.e.
Change:
HostMatchMapItems[]=intranet_admin.testserver.local;intranet_admin
to something like:
HostMatchMapItems[]=admin.intranet.testserver.local;intranet_admin

Mads Buus Jensen
Netpointers Open Systems.

Paul Borgermans

Monday 22 March 2004 6:26:21 am

Indeed, underscores are not allowed in DNS host names or domains.

Some proxies have problem with that too (like Squid unless you explicitely allow for underscores).

Sorry, did not read your post carefully enough since I bumped on this one also a few years ago

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans