Solved

Processing Site-Only Requests

Posted on 2009-05-18
2
260 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
ID: 24415699
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
ID: 24415834
>>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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

21 Experts available now in Live!

Get 1:1 Help Now