Hey guys, i'm trying to use htaccess to both password protect a directory, and allow certain domains to access the directory also, does anyone know how I can do both?
help :(
Collapse
X
-
What I did was add my .htaccess and .htpasswd files as normal to setup the protection. As far as allowing dominas, I had my server techs change my HTTP-Config file. I didn't want to mess with this myself. There was no solution that i saw to make the .htaccess handle this. The Http-Config works like a charm ;^) -
-
I tried the Allow Deny Hyper with no luck.
I think that is for something else. Or I am missunderstanding the question. I beleive they want to allow their members area
from one domain to access the content on the other.
Allow/Deny would not work in this case. But I am no expert.
Just went through it recently.
Comment
-
Thx porndaddy, it sounds like you're on the right track. Though my server admin has no idea how to edit httpd to allow domains. Can you give me any more info on how this is done with http config?ICQ: 171585427
AIM: eHustla420
Mail: mike @ spazzed . com
<a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment.Comment
-
What are you trying to do? Allow members to access the members area of other sites you have? Or, do you just want members from one members area to access content from another members area? I have come across both problems, and have found good solutions for both.Originally posted by makinbank
Thx porndaddy, it sounds like you're on the right track. Though my server admin has no idea how to edit httpd to allow domains. Can you give me any more info on how this is done with http config?
Oh, and is all the content on one server or are you accessing content/members areas on other servers?ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>Comment
-
I want members from one members area to access content from another members area. all the content is on the same server.Originally posted by p00p
What are you trying to do? Allow members to access the members area of other sites you have? Or, do you just want members from one members area to access content from another members area? I have come across both problems, and have found good solutions for both.
Oh, and is all the content on one server or are you accessing content/members areas on other servers?ICQ: 171585427
AIM: eHustla420
Mail: mike @ spazzed . com
<a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment.Comment
-
Set up symbolic links. Works like a charm. And fire your admin for not thinking of this solution.Originally posted by makinbank
I want members from one members area to access content from another members area. all the content is on the same server.
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>Comment
-
AuthType Basic
AuthName "Members Area"
AuthUserFile /usr/www/domain.com/nowebaccess/.htpasswd
require valid-user
Order deny,allow
Deny from all
allow from xxx.xxx.xxx.xxx
allow from domain.com
Satisfy any
DynaMite
Comment
-
You´re welcome
DynaMiteComment
-
Didn't work for me...still got the authentication box.Originally posted by DynaSpain
AuthType Basic
AuthName "Members Area"
AuthUserFile /usr/www/domain.com/nowebaccess/.htpasswd
require valid-user
Order deny,allow
Deny from all
allow from xxx.xxx.xxx.xxx
allow from domain.com
Satisfy any
DynaMite
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>Comment
-
This 100% works. Add:Originally posted by p00p
Didn't work for me...still got the authentication box.
AllowOverride All
if not check your server error log to see if you have used the right
IP referrer. I´m using this and it works very fine.
DynaMiteComment
-
If it doesn´t work then you´re apache config is not correct.Originally posted by makinbank
That doesnt work dynamite, im way past that
Paste it here and remove all data relevant to your machine and
I´ll tell you what´s wrong.
This method works perfect I use it a lot
DynaMiteComment
-
ok change Options to: Options All -Indexes
You can also put that line on top of your .htaccess file
Options All -Indexes
DynaMiteComment


Comment