Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 specify a domain not found :!:
Google
Post new topic Reply to topic
Author Message
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Thu Mar 09, 2006 11:19 pm Reply with quoteBack to top

make a directory called errornodomain or domainnotfound then add at the top of your Virtual Hosts configuration this

# The error Page

NameVirtualHost yourip

<VirtualHost yourip>
ServerAdmin admin@yourdomain.com
DocumentRoot C:\apache2triad\www.error.yourdomain.com
ServerName www.error.yourdomain.com
ServerAlias error.yourdomain.com
ErrorLog logs/error.yourdomain.com-error_log
CustomLog logs/error.yourdomain.com-access_log common
</VirtualHost>

then add the other VirtualHost text

example:
Code:

# The error Page

NameVirtualHost yourip

<VirtualHost yourip>
    ServerAdmin admin@yourdomain.com
    DocumentRoot C:\apache2triad\www.error.yourdomain.com
    ServerName www.error.yourdomain.com
    ServerAlias error.yourdomain.com
    ErrorLog logs/error.yourdomain.com-error_log
    CustomLog logs/error.yourdomain.com-access_log common
</VirtualHost>

#Sites

<VirtualHost yourip>
    ServerAdmin admin@yourdomain.com
    DocumentRoot C:\apache2triad\www.ex.ro
    ServerName www.ex.yourdomain.com
    ServerAlias anti-trafic.yourdomain.com
    ErrorLog logs/anti-trafic.yourdomain.com-error_log
    CustomLog logs/anti-trafic.yourdomain.com-access_log common
</VirtualHost>

<VirtualHost yourip>
    ServerAdmin admin@yourdomain.com
    DocumentRoot C:\apache2triad\www.test.ci.kz.ro
    ServerName www.test.yourdomain.com
    ServerAlias astra.yourdomain.com
    ErrorLog logs/astra.yourdomain.com-error_log
    CustomLog logs/astra.yourdomain.com-access_log common
</VirtualHost>

<VirtualHost yourip>
    ServerAdmin admin@yourdomain.com
    DocumentRoot C:\apache2triad\www.chat.yourdomain.com
    ServerName www.chat.yourdomain.com
    ServerAlias chat.yourdomain.com
    ErrorLog logs/chat.yourdomain.com-error_log
    CustomLog logs/chat.yourdomain.com-access_log common
</VirtualHost>

<VirtualHost yourip>
    ServerAdmin admin@yourdomain.com
    DocumentRoot C:\apache2triad\www.yourdomain.com
    ServerName www.yourdomain.com
    ServerAlias yourdomain.com
    ErrorLog logs/yourdomain.com-error_log
    CustomLog logs/yourdomain.com-access_log common
</VirtualHost>


that very important that the error domain not found to be placed at the top then in that page error.yourdomain.com write something like Sorry this domain is not hosted here or Domain not found ...etc
success !!
View user's profileSend private messageSend e-mailYahoo Messenger
Joshua Meadows (DemoRic)
support
support


Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Fri Mar 10, 2006 1:03 pm Reply with quoteBack to top

... or you can just have a default virtual host that will be selected when no match is found in your other virtual hosts

Quote:
<VirtualHost _default_:80>
View user's profileSend private messageYahoo MessengerICQ Number
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Tue Apr 11, 2006 11:13 am Reply with quoteBack to top

this one i didn't know it thank you Exclamation
View user's profileSend private messageSend e-mailYahoo Messenger
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT