Re: Apache Virtual Users


Subject: Re: Apache Virtual Users
From: The Alaskan Bear (akbear@akbearsden.com)
Date: Tue Oct 22 2002 - 23:28:41 AKDT


One thing you can do is edit your httpd.conf file and have the following setup at the bottom

<VirtualHost 24.237.13.91>
        DocumentRoot /home/furbs/public_html
        ServerAdmin furbs@swjedi.net
        ServerName furbs.swjedi.net
        ScriptAlias /cgi-bin/ /home/furbs/public_html/cgi-bin/
        Options ExecCgi Includes Indexes FollowSymlinks
        ErrorLog /home/furbs/httplogs/error.log
        TransferLog /home/furbs/httplogs/transfer.log
        AgentLog /home/furbs/httplogs/agent.log
        RefererLog /home/furbs/httplogs/refer.log
</VirtualHost>

Now, obviously with this example I did use your ip for that domain, and I guessed that the users home dir was /home/furbs
but this is what I have done for every one of my customers on my hosting. You can do this for whatever you want, you just
have to tell apache what the domain (servername) is and where on your system it points. IE: www.thisismydomain.com would point
to /home/mydomain/public_html . Then you would of course have to have your dns setup to point your subdomain to your ip as well.
The other thing if you notice is that I have setup a log dir for my customers, this way instead of the traffic going to a global
log, it goes to their individual accounts so they can see the traffic going to their sites.

I don't know where your httpd.conf file is, but mine is under /etc/httpd/conf/

I have put this VirtualHost config at the very end so I can continue to add new ones and they are easy for me to access.
You can also have the ServerName as www.swjedi.net/furbs or anything along those lines. If you have anymore questions, please
feel free to shoot me and email and I will be more than willing to help you out.

-- 
Ted Montgomery
The Alaskan Bear's Den
akbear@akbearsden.com
Registered Linux User: #253251
907-242-9824

-- There are some things lots of money can buy ... -- -- For everything else, there is LINUX ... --

On Tue, Oct 22, 2002 at 09:06:02PM -0800, Brian ThunderEagle wrote: > > Very simple what I am trying to do. But I can't find anything on how to do it > or what exactly it is called. > > I have my web site "www.swjedi.net" now I have user sites that I have migrated > from IIS. Originally you would view user pages like this: > http://www.swjedi.net/furbs/ > I want to do this: > http://furbs.swjedi.net > > How do I make an address "furbs.swjedi.net" point to a specific directory on my > Apache server? If nothing else, how can I simply set up the typical use > of "http://www.swjedi.net/furbs/". Then mabye map an address to that location? > > > > > Brian ThunderEagle > - http://www.swjedi.net > - furbs@swjedi.net > - bthundereagle@aidea.org > > > > > > > > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > --------- > To unsubscribe, send email to <aklug-request@aklug.org> > with 'unsubscribe' in the message body.

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Oct 22 2002 - 23:29:25 AKDT