Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th February 2010, 09:02 AM
Keldorn's Avatar
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 25
Posts: 515
linuxfedorafirefox
Apache2 VirtualHost redirects

I have got small web server with several web sites on it.
When I am adding new dns record - and going to www.my_new_website dot com (There is no virtual host for it), Apache redirects me on my first virtual host. How to make it send 404 error for websites if there is no virtual host for it?
Reply With Quote
  #2  
Old 6th February 2010, 02:42 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
linuxfedorafirefox
Looks like named based here.
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

Don't see any options for it.

---------- Post added at 06:42 PM CST ---------- Previous post was at 06:40 PM CST ----------

I see this in /etc/httpd/conf/httpd.conf
Code:
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#
Reply With Quote
Reply

Tags
apache2, redirects, virtualhost

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Redirects to Subdirectories? CraigWatson Servers & Networking 7 4th July 2008 10:51 AM
.htaccess Redirects - Including GET attributes CraigWatson Servers & Networking 2 23rd June 2008 11:33 PM
http automaticaly redirects to ftp. Why? paparcioziedas Servers & Networking 7 3rd August 2005 08:12 AM


Current GMT-time: 03:21 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat