Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-20-2004, 02:17 PM   #16
LQ Newbie
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0

Sorry I've been out on the road a couple of days.
You have to put a servername entry in the virtualserver section or it doesn't know what server
it is listening on. I have 3 virtual servers on one of my boxes and they go something like this:

<virtualhost *:80>
documentroot /var/www/html/mydomain
errorlog logs/mydomain_error_log
<virtualhost *:80>
documentroot /var/www/webmail
errorlog logs/mydomain_webmail_error_log
<virtualhost *:80>
documentroot /var/www/html/theotherdomain
errorlog logs/theotherdomain_error_log

You get the idea. This is a very simple setup that doesn't require screwing with any of the other settings in apache. You just add virtual hosts to your heart's content and put each domain's files in it's own directory. also makes it simple to back up - just copy the /var/www directory entirely. In order to have your pages hit properly you simply edit the NS records on each domain to hit the IP address of your server.

Now alias subdirectories are a little more complicated. You have to add a <directory> section inside the virtualhost for each subdirectory and give access options for each directory. What I've had problems with and have posted on another thread is getting user accounts set up so that a user can ftp their files to the server and the web page is viewable by the www. It's not really that complicated but I'm just learning the process. But what I've explained here is very cut and dried and I've reproduced it without fail more than once.
Old 10-20-2004, 07:07 PM   #17
LQ Newbie
Registered: Mar 2004
Location: Vancouver, B.C.
Distribution: IPcop1.4 & Deb3.1
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the reply cavingreer.

That part is fairly simple and straight forward.

I am just confused about where to stick the thing. There is a reference to # Include the virtual host configurations: Include /etc/apache2/sites-enabled/[^.#]* at the end of my apache2.conf file.

I have an example of that file below my apache2.conf in the link that I provided.

From what I can tell the deb install is "atypical" and it really doesn't make any sense to me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache config doralsoral Linux - Software 1 11-04-2005 09:01 PM
apache config xpace Linux - Networking 22 08-26-2005 03:36 AM
Apache Config riluve Linux - Software 1 02-14-2005 02:42 PM
Apache config silmaril8n Linux - Newbie 8 11-11-2004 04:02 PM
apache config. drkfir5 Linux - Software 9 10-25-2004 02:05 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration