LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2009, 11:07 PM   #1
elby
LQ Newbie
 
Registered: May 2009
Distribution: RHEL 3
Posts: 3

Rep: Reputation: 0
virtual hosts already configured, adding an additional one fails?


I was hired to program some Drupal, but management forgot to tell me that I am the only person in the department who knows anything about computers, hence I am now the one and only webmaster. A noob with a root account.

I'm running RHEL 3.

I'm picking it up, but I have a somewhat urgent problem. I needed to create a wordpress blog (no problem). The problem is assigning a virtual address to it.

I found the httpd.conf file. It's a fairly large website and there are about 40 virtual hosts already registered and working. So I thought it would be easy. I cut and pasted a working virtual host setting and changed it to match the local address of the blog (which I tripled checked: it is correct. i can access it by appending to the server name and it looks like all the other blog addresses).

<VirtualHost *:80>
ServerAdmin webteam@foo.edu
DocumentRoot /opt/webroot/html/foo/blogs/visualarts
ServerName visualartsblog.foo.edu
ErrorLog "|/usr/sbin/rotatelogs /opt/webaccess_logs/blog-vablog-error_log 500M"
CustomLog "|/usr/sbin/rotatelogs /opt/webaccess_logs/blog-vablog-access_log 500M" combined
</VirtualHost>

I restarted Apache.

The address visualartsblog.foo.edu does not work. "DNS error - cannot find server".

I tried: /usr/sbin/httpd -S

At it was in the long list of virtual hosts:

port 80 namevhost visualartsblog.foo.edu (/etc/httpd/conf/httpd.conf:1369)

Help???

And many thanks.

elby newbie
 
Old 05-23-2009, 09:23 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
1. RHEL 3 is real old, current is RHEL 5.3
2. Apache is a webserver, not a DNS server; you need a DNS entry in the relevant DNS files eg http://www.linuxtopia.org/online_boo...5_ch-bind.html
 
Old 05-24-2009, 01:00 AM   #3
elby
LQ Newbie
 
Registered: May 2009
Distribution: RHEL 3
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
1. RHEL 3 is real old, current is RHEL 5.3
2. Apache is a webserver, not a DNS server; you need a DNS entry in the relevant DNS files eg http://www.linuxtopia.org/online_boo...5_ch-bind.html
Thanks for the response.

Dammit Jim, I'm a programmer, not a sys admin.

Tell me out about the outdated linux, too. I'm supposed to do a custom Drupal site but need to upgrade the PHP also. I am not about to take down the server on the first week of work because I know nothing about Linux beyond a handful of shell commands. So I am sitting on my hands creating blogs for professors which I can't assign addresses to and poking around the server directory.

I suppose if this is annoying, you will simply not respond. I'm clueless on adding a DNS entry. I read the stuff at the link.

Here's my named.conf:

// Default named.conf generated by install of bind-9.2.4-7_EL3
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
include "/etc/rndc.key";

Doesn't look like what the link described. The /var/named and /var/named/data directories are empty.

-> sigh <-

Any more hints from kind hearted linux gurus?
 
  


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
[SOLVED] Local DNS configured through /etc/hosts bartonski Linux - Wireless Networking 3 10-14-2009 07:38 AM
Adding seperate servers as virtual hosts (?) KClaisse Linux - Server 1 11-15-2007 10:48 AM
additional package install fails pcandpc Mandriva 2 05-27-2005 05:20 AM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 04:52 PM
Adding additional Network to VPN Shoki Linux - Networking 0 05-24-2001 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration