Solved

Processing Site-Only Requests

Posted on 2009-05-18
2
258 Views
Last Modified: 2012-05-07
Hey experts,

  I have one site (mysite.com) hosted on my server using apache; I need to change a configuration flag in apache to allow my server to only process requests to mysite.com and to deny all other requests; for example, if there is a site example.com pointing to my server ip, I want my server to deny requests to this site; any help on what this flag in apache is?
0
Comment
Question by:mte01
2 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 300 total points
Comment Utility
The simplest approach is to use NameBased VirtualHosts
The default virtual host (catch all) should deny anyone.

Another approach is to use mod_rewrite, eg.

RewriteCond %{HTTP_HOST} !^(www.)?mysite.com
RewriteRule .* - [L,F]
0
 
LVL 3

Author Comment

by:mte01
Comment Utility
>>ravenpl

Many thanks for your assisting comment! (It looks great!) I'll try it, and I'll inform you of the results
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now