homepage Welcome to WebmasterWorld Guest from 54.161.185.244
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
use same authentication info between 2 apache
Share authentication info between 2 apache
q12345



 
Msg#: 4582518 posted 10:21 am on Jun 9, 2013 (gmt 0)

I'm using 2 Apache with two separate ports in same machine. It means Apache 1.3 with 8001 and Apache 2.2 with 8002 Port. I used SSL (self-signed) too. I used same user name and password for both. Now I can go from https://192.168.1.1:8001/mypage.cgi to https://192.168.1.1:8002/secondpage.php easily. But it ask me username and password again. When you open https://192.168.1.1:8001/mypage.cgi, it asked username and password, and when you click on a link and go to https://192.168.1.1:8002/secondpage.php, it asked username and password again. I want to ask one time authentication info not two times.

 

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4582518 posted 11:02 am on Jun 9, 2013 (gmt 0)

welcome to WebmasterWorld, q12345!


are you talking about HTTP Basic Authentication?

http://www.ietf.org/rfc/rfc2617.txt [ietf.org]:
The realm value (case-sensitive), in combination with the canonical root URL (the absoluteURI for the server whose abs_path is empty; see section 5.1.2 of [2]) of the server being accessed, defines the protection space.


this means your 2 servers are separate authentication realms since the root urls include the port number and are therefore different.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved