Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 12th, 2001, 10:40 PM
4wzdr|X 4wzdr|X is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: oShaWa
Posts: 52 4wzdr|X User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
userdir&vhost,subdomains

hilo

I am curious too user dir I know it is possible to serve user pages out
of there home.
This is interesting because it is below server and doc root so what shall
be done to allow this, symlinks?

Also vhosts say domain.com how can user.domain.com be done
I understand doing multiple hosts using same ip
but that requires dedicated names.

so basically how does one go about creating a subdomains



<IfModule mod_userdir.c>
UserDir /home/public_html
UserDir disabled root

</IfModule>

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>


say I want to serve domain.com/~me/index
from /home/me/

also guessing that ~ means symlink?
how about * what's that shadowed?

thanks all lots of stuff
believe me have searched all places reading up justt need some advice

my brain has been racked dealing with mail servers damn sympatico
if anybody knows how to masquerade around there block
that would be great


=D

Reply With Quote
  #2  
Old October 13th, 2001, 04:26 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>>I know it is possible to serve user pages out of there home.

Yes it's possible technically, but in practice, nobody would do that. You need mod_alias to map dir outside of your docroot. However, Alias/AliasMatch must be specified in httpd.conf or its Include file, not .htaccess. For users under userdir, their priviledges ovbiously are limited (no access to httpd.conf), so it's a bad idea in practice.

>> symlinks?

Yes, you can use SymLinksIfOwnerMatch to do that. If the dir is not writable by the user, he or she can't create symlink in the first place. To do that, you need to make sure the target dir is writable by that user.

>> Also vhosts say domain.com how can user.domain.com be done

This must first be done via DNS. As long as user.domain.com resolves to the same IP, then Apache can be configured to serve different content for user.domain.com.

>> so basically how does one go about creating a subdomains

This is off-topic here. Since you are asking something relevant to your other questions, I will reply you anyway.
If you have limited users who want user.domain.com, just add multiple A record of user1.domain.com to point to the same IP as your default server's IP. Don't use cname.

>> UserDir /home/public_html

This is misconfigured and highly insecure based on the setting with your <Directory "/home/*/public_html"> block.

The translation of UserDir /home/public_html is:

/home/public_html/username/index.html
http://www.domain.com/~username/index.html

Insecure because:

/home/public_html/username/.bashrc is world accessible via browser at http://www.domain.com/~username/.bashrc

With UserDir public_html (default), it's assumed to be:

/home/username/public_html/index.html ->
http://www.domain.com/~username/index.html

>> say I want to serve domain.com/~me/index from /home/me/

You need to give better example. I have no way of knowing whether index is a file or dir.

>> also guessing that ~ means symlink?

Not at all. That's dedicated for userdir.

>> how about * what's that shadowed?

Wildcard.

Last edited by freebsd : October 13th, 2001 at 04:29 AM.

Reply With Quote
  #3  
Old October 13th, 2001, 02:49 PM
4wzdr|X 4wzdr|X is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: oShaWa
Posts: 52 4wzdr|X User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Well thanks alot freebsd

will not even think about userdir anymore, was curious about it.

Thanx again

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > userdir&vhost,subdomains


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway