Solved

Processing Site-Only Requests

Posted on 2009-05-18
2
262 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Error Settings 12 84
Need to redirect request from IIS server to old Apache Server. 3 144
Apache,  not running php on top level 14 71
AWS EC2 HTTP & HTTPS 2 45
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
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 …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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