This is a discussion on 2.0.48 authentication not working, anyone can get in within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm trying to use basic authentication, but for some reason its not working. It never prompts me for a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to use basic authentication, but for some reason its not working.
It never prompts me for a password. The same server is running another site which is using basic authentication and thats working. I'm not sure whats different about this other site that its not working. I have restarted apache after making the changes to the conf file. Here's the relevant section (the actual conf file has the correct server name and ip): <VirtualHost 0.0.0.0:80> ServerName my.server.name DocumentRoot /disk/whis-site CustomLog logs/access_log_whis combined <Directory /disk/whis-disk/phppgadmin> Options +ExecCGI Indexes AuthType Basic AuthName "Whis" AuthUserFile /disk/whis_sitePassFile Require valid-user </Directory> </VirtualHost> |
|
|||
|
news.caltech.edu wrote:
> I'm trying to use basic authentication, but for some reason its not working. > It never prompts me for a password. The same server is running another site > which is using basic authentication and thats working. I'm not sure whats > different about this other site that its not working. I have restarted > apache after making the changes to the conf file. Here's the relevant > section (the actual conf file has the correct server name and ip): > > <VirtualHost 0.0.0.0:80> > ServerName my.server.name > DocumentRoot /disk/whis-site > CustomLog logs/access_log_whis combined > <Directory /disk/whis-disk/phppgadmin> > Options +ExecCGI Indexes > AuthType Basic > AuthName "Whis" > AuthUserFile /disk/whis_sitePassFile > Require valid-user > </Directory> > </VirtualHost> > > anyone have any suggestions for this? i'm really stumped as to why the above config doesnt work. |
|
|||
|
news.caltech.edu wrote:
> I'm trying to use basic authentication, but for some reason its not working. > It never prompts me for a password. The same server is running another site > which is using basic authentication and thats working. I'm not sure whats > different about this other site that its not working. I have restarted > apache after making the changes to the conf file. Here's the relevant > section (the actual conf file has the correct server name and ip): > > <VirtualHost 0.0.0.0:80> > ServerName my.server.name > DocumentRoot /disk/whis-site > CustomLog logs/access_log_whis combined > <Directory /disk/whis-disk/phppgadmin> > Options +ExecCGI Indexes > AuthType Basic > AuthName "Whis" > AuthUserFile /disk/whis_sitePassFile > Require valid-user > </Directory> > </VirtualHost> > > Try 'Satisfy any' at the end of <Directory>. Best Torsten |
|
|||
|
Torsten Lilge wrote:
> news.caltech.edu wrote: > > >>I'm trying to use basic authentication, but for some reason its not working. >>It never prompts me for a password. The same server is running another site >>which is using basic authentication and thats working. I'm not sure whats >>different about this other site that its not working. I have restarted >>apache after making the changes to the conf file. Here's the relevant >>section (the actual conf file has the correct server name and ip): >> >><VirtualHost 0.0.0.0:80> >> ServerName my.server.name >> DocumentRoot /disk/whis-site >> CustomLog logs/access_log_whis combined >> <Directory /disk/whis-disk/phppgadmin> >> Options +ExecCGI Indexes >> AuthType Basic >> AuthName "Whis" >> AuthUserFile /disk/whis_sitePassFile >> Require valid-user >> </Directory> >></VirtualHost> >> >> > > Try 'Satisfy any' at the end of <Directory>. > > Best > Torsten I tried that, didnt work. I really dont understand why its not working since the same set up on the same machine for another site IS working. The only difference between this site and the other site is this site is a namevirtualhost since its sharing the IP address with another site. Does that require anything special? thanks Ian |
|
|||
|
Torsten Lilge wrote:
> news.caltech.edu wrote: > > >>I'm trying to use basic authentication, but for some reason its not working. >>It never prompts me for a password. The same server is running another site >>which is using basic authentication and thats working. I'm not sure whats >>different about this other site that its not working. I have restarted >>apache after making the changes to the conf file. Here's the relevant >>section (the actual conf file has the correct server name and ip): >> >><VirtualHost 0.0.0.0:80> >> ServerName my.server.name >> DocumentRoot /disk/whis-site >> CustomLog logs/access_log_whis combined >> <Directory /disk/whis-disk/phppgadmin> >> Options +ExecCGI Indexes >> AuthType Basic >> AuthName "Whis" >> AuthUserFile /disk/whis_sitePassFile >> Require valid-user >> </Directory> >></VirtualHost> >> >> > > Try 'Satisfy any' at the end of <Directory>. > > Best > Torsten ok i found out the reason it wasnt workinng ... because i am an idiot. /dish/whis-disk/phppgadmin was the wrong path. I think it would be legal for someone to shoot me now ;) sorry to waste everyones time. Ian |