LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   virtual hosts already configured, adding an additional one fails? (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-hosts-already-configured-adding-an-additional-one-fails-727911/)

elby 05-22-2009 10:07 PM

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

chrism01 05-23-2009 08:23 PM

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

elby 05-24-2009 12:00 AM

Quote:

Originally Posted by chrism01 (Post 3550669)
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?


All times are GMT -5. The time now is 05:30 AM.