LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0

Darb,
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>
servername www.mydomain.com
documentroot /var/www/html/mydomain
serveradmin postmaster@mydomain.com
errorlog logs/mydomain_error_log
</virtualhost>
#
<virtualhost *:80>
servername mail.mydomain.com
documentroot /var/www/webmail
serveradmin postmaster@mydomain.com
errorlog logs/mydomain_webmail_error_log
</virtualhost>
#
<virtualhost *:80>
servername www.theotherdomain.com
documentroot /var/www/html/theotherdomain
serveradmin postmaster@theotherdomain.com
errorlog logs/theotherdomain_error_log
</virtualhost>

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
darb
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.
 
  


Reply


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


All times are GMT -5. The time now is 06:34 AM.

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