Here shows files are there...
- Code: Select all
root@cp1fc1 [/home/domain/public_html]# ls -al
total 28
drwxr-x--- 4 domain nobody 4096 Mar 14 19:21 ./
drwx--x--x 7 domain domain 4096 Mar 14 18:35 ../
drwxr-xr-x 2 domain domain 4096 Mar 14 18:35 cgi-bin/
-rw-r--r-- 1 domain domain 74 Mar 14 18:33 .htaccess
-rw-r--r-- 1 domain domain 5071 Mar 14 19:21 index.php
drwxr-xr-x 6 domain domain 4096 Mar 14 18:39 myred/
root@cp1fc1 [/home/domain/public_html]#
Here is a sample entry in httpd.conf...
- Code: Select all
<VirtualHost 12.34.56.78>
ServerAlias domain.com *.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain/public_html
BytesLog domlogs/domain.com-bytes_log
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/domain/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
ServerName www.domain.com
User domain
Group domain
CustomLog domlogs/domain.com combined
Options -ExecCGI -Includes
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>
Here is a sample entry of dns zone...
- Code: Select all
; Modified by Web Host Manager
; Zone File for domain.com
$TTL 14400
@ 14440 IN SOA ns1.dnsns.com. admin.dnsns.com. (
2005031404
14400
7200
3600000
86400
)
domain.com. 14400 IN NS ns1.dnsns.com.
domain.com. 14400 IN NS ns2.dnsns.com.
domain.com. 14400 IN A 12.34.56.78
localhost.domain.com. 14400 IN A 127.0.0.1
domain.com. 14400 IN MX 0 domain.com.
mail 14400 IN CNAME domain.com.
www 14400 IN CNAME domain.com.
ftp 14400 IN CNAME domain.com.
*.domain.com. 14400 IN A 12.34.56.78
www.*.domain.com. 14400 IN A 12.34.56.78
To add everything is working and resolving fine. When trying to access a subdomain created with this it goes to the "Your "real" startpage:" setting from the admin configuration like it doesnt even exist.