var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
two url pointing to same apache dir. How to allow only one to work?
I'm hosting company customer. they provide me with basic domain to my account http://me.company.com/ and I have my own domain http://domain.com pointing to same apache directory (vhost)
But I want to allow acces only from by http://domain.com (based on http headers?).
I can create .htacces files in this dirs. Is there any directive for htacces to disallow acces from that virtual host? or any other way to do this?
I want to resolve it without interaction with my hosting company, co please dont tell me to do so.
also please dont ask me why I dont want my site to be accessible by 2 url's
Last edited by nand; 08-02-2005 at 06:39 PM.
you may use mod_rewrite directives. you will be able rewrite by above directives (in .htaccess) rewrites all incoming connects from http://me.company.com/ to http://domain.com
you may found some useful examples here:
Dedicated server since 2002, RIPE NCC member, LIR, AS51168
Split your content into directories, and have each vhost with a different docroot.
gr8 and how do I modify vhosts as mere customer?
no matter. already managed to setup mod_rewrite and its working ok
Sorry, I was coming from the dedicated server perspective, not shared hosting.