|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Zone error??
Hi,
Ive been searching everywhere and pulling my hair out trying to get this working as it was but then gone. I have a domain lets call abc.com and a sub domain forums.abc.com Now I used to be able to access the forums and the main page, but all of a sudden when I go to abc.com and forums.abc.com they both point to abc.com instead of 2 different directory's. I'm not sure if its a DNS issue or a vhost issue. BTW I do have 2 ip's available to use if needed. 1.1.1.1 and 1.1.1.2 for example Either way I will post both file and tell me what you think abc.net.db Code:
;
; BIND data file for abc.com
;
$TTL 32400
@ IN SOA abc.com. sysadmin.abc.com. (
2009060301 ; Serial
7200 ; Refresh
120 ; Retry
2419200 ; Expire
604800) ; Default TTL
;
IN NS ns1.abc.com.
IN NS ns2.abc.com.
; Google Mail
IN MX 10 ASPMX.L.GOOGLE.COM.
IN MX 20 ALT1.ASPMX.L.GOOGLE.COM.
;
abc.com. IN A 1.1.1.1
www IN CNAME abc.com.
forums IN CNAME abc.com.
and here is my vhost file http-vhost.conf Code:
ServerName abc.com
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin sysadmin@abc.com
DocumentRoot "/opt/lampstack-1.1-2/apache2/htdocs"
ServerName abc.com
ErrorLog "logs/abc.com-error_log"
CustomLog "logs/abc.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin sysadmin@abc.com
DocumentRoot "/opt/lampstack-1.1-2/apache2/forum_htdocs"
ServerName forums.abc.com
ErrorLog "logs/forums.abc.com-error_log"
CustomLog "logs/forums.abc.com-access_log" common
</VirtualHost>
Any help would be greatly appreciated. |
|
#2
|
||||
|
||||
|
This is not a DNS issue but rather an Apache issue...
Try adding: Quote:
to the second vhost setup. Make sure to restart apache after making any changes. |
|
#3
|
|||
|
|||
|
I've tried that, with no luck. Should I post this in the apache forum if you think its an apache issue?
|
|
#4
|
||||
|
||||
|
Quote:
I'll have someone move this over there for you. Now.. you say you used to be able to access them fine. Were any changes made prior to these not working anymore? Did it stop working after a reboot or something installed, configuration change, etc...? |
|
#5
|
|||
|
|||
|
Its ok, i've figured out what I did wrong, I forgot to uncomment the httpd-vhosts include in httpd.conf file.
Thanks for your help |
|
#6
|
||||
|
||||
|
Thanks for posting back that you got it sorted.
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Zone error?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|