LinuxQuestions.org
Help answer threads with 0 replies.
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-14-2004, 12:12 AM   #1
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
help on setting up apache server


I've read some of the apache docs, but I can't find a comprehensive(current) guide on how to set up the apache server. The Apache Docs make for a good reference if you alread know what you're looking for, but I don't, unfortunately.

Here's my situation. I have a server that I want to host a few domains off of. For the time being, I registered a few domains at dyndns. natezacserver.ath.cx, ffs.ath.cx, and zwd.ath.cx. I got apache configured to the point where I can see the default page using any of the domains, but the different sites aren't working. Currently I have the defauly site defined and the ffs site defined, but the ffs site doesn't seem to be activated when I use ffs.ath.cx. I always get the same, default page.

Some lines from my httpd.conf
Code:

ServerName natezacserver.ath.cx
DocumentRoot /var/www
Port 80

<Directory /var/www/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

<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>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.cgi
</IfModule>

HostNameLookups on
ServerSignature On

<Location /doc>
  order deny,allow
  deny from all
  allow from 127.0.0.0/255.0.0.0
  Options Indexes FollowSymLinks MultiViews
</Location>

NameVirtualHost 66.79.174.10

<VirtualHost ffs.ath.cx>
DocumentRoot /var/users/ffs/www
ServerName ffs.ath.cx
<Directory "/var/users/ffs/www">
allow from all
Options +Indexes
</Directory>
ErrorLog /var/users/ffs/logs/error.log
LogLevel error
ServerAdmin zac@zacwittedesign.com
HostNameLookups on
</VirtualHost>
Thanks,
Zac
 
Old 10-14-2004, 02:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Use:
Code:
<VirtualHost 66.79.174.10>
And also keep in mind that you need a pair of <VirtualHost 66.79.174.10>..</VirtualHost> for any virtual domain you want to host.
 
Old 10-15-2004, 03:22 AM   #3
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Original Poster
Rep: Reputation: 30
I ended up getting rid of these two lines:

ServerName natezacserver.ath.cx
DocumentRoot /var/www

and defining all my sites as VirtualHosts like so:

Code:
NameVirtualHost *

<VirtualHost *:80>
  #ServerName 66.79.174.10
  ServerName natezacserver.ath.cx
  #ServerAlias natezacserver.ath.cx
  DocumentRoot /var/www
  ServerAdmin zac@zacwittedesign.com
</VirtualHost>

<VirtualHost *:80>
  ServerName www.zacwittedesign.com
  ServerAlias zacwittedesign.com zwd.ath.cx
  DocumentRoot /var/users/zwd/www
  ServerAdmin zac@zacwittedesign.com
</VirtualHost>

<VirtualHost *:80>
  ServerName ffs.ath.cx
  DocumentRoot /var/users/ffs/www
  <Directory "/var/users/ffs/www">
    allow from all
    AllowOverride All
  </Directory>
  ErrorLog /var/users/ffs/logs/error.log
  LogLevel error
  ServerAdmin zac@zacwittedesign.com
</VirtualHost>
 
  


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
setting up a apache server on lan dipen_linux Linux - Networking 1 06-10-2005 05:03 AM
setting up a web server using apache Whatshisface Linux - Newbie 14 12-11-2004 03:01 PM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
Setting up a new Apache Web Server zenaphex Linux - Software 2 06-06-2004 07:34 PM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration