GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   help :( (https://gfy.com/showthread.php?t=122121)

makinbank 04-03-2003 10:11 AM

help :(
 
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?

PornDaddy 04-03-2003 10:34 AM

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 ;^)

hyper 04-03-2003 11:01 AM

allow deny
http://www.awtrey.com/support/webhost/access.php

PornDaddy 04-03-2003 01:12 PM

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.


:)

goBigtime 04-03-2003 01:15 PM

mod_rewrite is your friend

makinbank 04-04-2003 11:46 AM

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?

p00p 04-04-2003 12:43 PM

Quote:

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?
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?

makinbank 04-04-2003 01:17 PM

Quote:

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?

I want members from one members area to access content from another members area. all the content is on the same server.

p00p 04-04-2003 02:21 PM

Quote:

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.

Set up symbolic links. Works like a charm. And fire your admin for not thinking of this solution. :BangBang:

ServerGenius 04-04-2003 02:27 PM

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 :thumbsup

ServerGenius 04-04-2003 02:29 PM

You´re welcome

DynaMite

p00p 04-04-2003 02:35 PM

Quote:

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 :thumbsup

Didn't work for me...still got the authentication box.

makinbank 04-04-2003 02:37 PM

That doesnt work dynamite, im way past that

ServerGenius 04-04-2003 02:38 PM

Quote:

Originally posted by p00p

Didn't work for me...still got the authentication box.

This 100% works. Add:
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.


DynaMite

ServerGenius 04-04-2003 02:40 PM

Quote:

Originally posted by makinbank
That doesnt work dynamite, im way past that
If it doesn´t work then you´re apache config is not correct.
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

DynaMite

p00p 04-04-2003 02:46 PM

/home/sites/mysite/members/.htaccess: AllowOverride not allowed here

ServerGenius 04-04-2003 03:24 PM

ok change Options to: Options All -Indexes
You can also put that line on top of your .htaccess file

Options All -Indexes

DynaMite


All times are GMT -7. The time now is 09:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123