Hello
I am running Cent OS and currently have 2 different domains setup correctly on 1 server(I set these up via cPanel years ago)
I wish to add a third but do not have a cPanel license, ideally I do not want to purchase one just to add another domain.
I located my httpd.conf file
/etc/httpd/conf/httpd.conf
I found two Virtual host blocks which apply to my other two working domains, so I copied one and edited it according to my new domain.
Quote:
<VirtualHost 11.11.11.11:80>
ServerName domain(dot)org
ServerAlias (www)domain(dot)org
DocumentRoot /home/sm/public_html
ServerAdmin webmaster[at]domain(dot)org
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/domain(dot)org combined
CustomLog /usr/local/apache/domlogs/domain(dot)org-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User sm # Needed for Cpanel::ApacheConf
UserDir enabled sm
<IfModule mod_suphp.c>
suPHP_UserGroup sm sm
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup sm sm
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid sm sm
</IfModule>
ScriptAlias /cgi-bin/ /home/sm/public_html/cgi-bin/
</VirtualHost>
|
I created a user
sm and also a new directory
/sm/public_html inside
/home
I have applied the same nameservers as on my other domains, but when visiting my domain in firefox I get a generic "server not found" message.
I have checked permssions and group ownership are the same as the other domains.
drwxr-x--- 9 sm nobody 4096 (new non working domain user)
drwxr-x--- 15 d nobody 4096 (old working domain user 1)
drwxr-x--- 14 s nobody 4096 (old working domain user 2)
- I have waited 80+ hours for DNS settings to propagate
- I have restarted the server with
service httpd restart
- Checked user sm exists within
/etc/passwd - which it does along with my other 2 users for the other 2 domains.
When running
httpd -S I get the following
Quote:
VirtualHost configuration:
11.11.11.11:80 is a NameVirtualHost
default server server2.1.org (/usr/local/apache/conf/httpd.conf:259)
port 80 namevhost server2.1.org (/usr/local/apache/conf/httpd.conf:259)
port 80 namevhost domain.org (/usr/local/apache/conf/httpd.conf:281)
port 80 namevhost 2.org (/usr/local/apache/conf/httpd.conf:314)
port 80 namevhost 1.org (/usr/local/apache/conf/httpd.conf:346)
port 80 namevhost server2.1.org (/usr/local/apache/conf/httpd.conf:383)
127.0.0.1:80 is a NameVirtualHost
default server server2.1.org (/usr/local/apache/conf/httpd.conf:383)
port 80 namevhost server2.1.org (/usr/local/apache/conf/httpd.conf:383)
wildcard NameVirtualHosts and _default_ servers:
*:443is a NameVirtualHost
default server 1.org (/usr/local/apache/conf/httpd.conf:434)
port 443 namevhost 1.org (/usr/local/apache/conf/httpd.conf:434)
*:* is a NameVirtualHost
default server server2.1.org (/usr/local/apache/conf/httpd.conf:271)
port * namevhost server2.1.org (/usr/local/apache/conf/httpd.conf:271)
port * namevhost server2.1.org (/usr/local/apache/conf/httpd.conf:383)
Syntax OK
|
Additionally in windows running nslookup (www)domain(org) returns
Quote:
*** Can't find server name for address 192.168.1.1: Non-existent dom
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.1
*** UnKnown can't find (www)domain(org): Server failed
|