Apache

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Okay here is my current setup. I'm running Cent OS 5.2 on my server with apache 2.2. I've set up a samba server that is running a domain controller. Right now what I want to do is create a way for apache to run some "virtual machines". Alot of hosting companies do a thing like it.

Basicly, each of the users on the samba server will have a Sites folder. I want this to direct to something like

http://servername/~user/

Anyone know what this might be called?
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

virtual hosts?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Would I just set the server alias to what url I would want?

http://servername/~user

Also off the top of your head do you know if that would support wildcards? I'm looking through the docs too.

For example so I could set it up so any user would get the same virtual host setup?

I believe that mac's have something like this.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

The ability to direct http request to a users directory required the mod_userdir
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

so does that solve all of your questions or are the ones in your previous post still lingering?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Nope that solve it all, well besides the fact that I cant get it towork >< gives me a 403.

However I think it might be SElinux messing with things.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

ahh, gotcha.
lol
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

mod_userdir.

http://httpd.apache.org/docs/2.0/howto/public_html.html
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

the 403 is probably there because apache doesn't have read permissions to the files you're trying to serve. While you may make individual user sites, the same permissions rules still apply.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

For the 403, on my Ubuntu/Debian box; I've found that if I forget to symlink userdir.conf to the mods-enabled folder along with userdir.load I will get the 403 when trying to access the directory and get a directory listing, but not when I access any of the files in that directory.

The contents of userdir.conf contains a handy block of information.

Code: [ Select ]
<IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root

        <Directory /home/*/public_html>
                AllowOverride FileInfo AuthConfig Limit
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        </Directory>
</IfModule>
  1. <IfModule mod_userdir.c>
  2.         UserDir public_html
  3.         UserDir disabled root
  4.         <Directory /home/*/public_html>
  5.                 AllowOverride FileInfo AuthConfig Limit
  6.                 Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  7.         </Directory>
  8. </IfModule>


When I make sure that is loaded with the configuration, I no longer get the 403 errors.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.