GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-Jan-2003, 08:06
Wheres Axl Rose Wheres Axl Rose is offline
New Member
 
Join Date: Jan 2003
Location: wichita falls, tx
Posts: 3
Wheres Axl Rose is an unknown quantity at this point
Question

Password Protecting folders for Virtual host?


I have used the .htaccess method to password protect a folder for a /public_html/ site...but its also a virtual host, and if I go to the .com address, the folder is accessable, how do I protect a virtual host folder?

Thanks
  #2  
Old 17-Jan-2003, 08:26
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hi Chris, I am afraid I don't understand your problem since I am also on a virtual host but have never encountered a problem like this.

Tell me about your server, that will help...
  #3  
Old 17-Jan-2003, 08:45
Wheres Axl Rose Wheres Axl Rose is offline
New Member
 
Join Date: Jan 2003
Location: wichita falls, tx
Posts: 3
Wheres Axl Rose is an unknown quantity at this point
Server is running FreeBSD 4.6 with Apache 2.0.

The problem is basically this:

I set up a .htaccess file for a user who requested a password protected folder. I could go to her user site address.. (i.e. www.domain.com) and it worked fine. but her virtual domain address still allowed access to the folder. I actually just figured out the problem though. I had to set the allowoverride statement inside her virtual host statement. (also had a link established from a virtual hosts folder to her home directory, I removed that and pointed the document root to her home directory.)

Its working great after those changes.
  #4  
Old 17-Jan-2003, 08:54
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
yes, that <Directory></Directory> virtual host setting is something a lot of us forget about, I know I did.

I guessed it would have been the AllowOveride directive but that 'link established from a virtual hosts folder to her home directory' still has me confused, care to share what you found out?
  #5  
Old 17-Jan-2003, 09:16
Wheres Axl Rose Wheres Axl Rose is offline
New Member
 
Join Date: Jan 2003
Location: wichita falls, tx
Posts: 3
Wheres Axl Rose is an unknown quantity at this point
Well all that was for was do to the way we have our users set up. our users home directory is all in regards to what kind of account they have. a standard user has a directory of home/standard. now if they switch to a business acount, it is changed to /home/biz. So we established a folder of /usr/local/www/vdom and put links in there that point to the users home directory. And the httpd.conf file just points to the link. SO, when a user changes the account, all we have to do is change the link. To me, its just a needless step, but I walked into this, as it was done that we before I arrived. Whenever I set them up I just point it to the users directory, ignoring the link....
  #6  
Old 17-Jan-2003, 10:52
Elmseeker's Avatar
Elmseeker Elmseeker is offline
Awaiting Email Confirmation
 
Join Date: Jan 2003
Posts: 87
Elmseeker is on a distinguished road

Simlinks?


You should never use simlinks in web addresses anyways always use either hard links or better yet point to vdomain to the actual directory it is alot more secure.
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:15.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.