Closed Thread Icon

Preserved Topic: apache gurus, what is this called? Pages that link to <a href="https://ozoneasylum.com/backlink?for=21065" title="Pages that link to Preserved Topic: apache gurus, what is this called?" rel="nofollow" >Preserved Topic: apache gurus, what is this called?\

 
Author Thread
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 03-01-2002 08:41

let's say i have too many virtual domains hosted on one server.

vdomain1.com (document root is: /home/vdomain1/www)
vdomain2.com (document root is: /home/vdomain2/www)
vdomain3.com (document root is: /home/vdomain1/www)

all reside on 192.168.0.18

There is something that can be done so that if we surf to either of:
vdomain1.com/common
or
vdomain2.com/common
vdomain3.com/common

they all go let's say to google.com
and the /common doesn't not exist in either of these virtual domain's document root.
with is the /common thing called?

how can i set such a thing?

something like: www.kameelah.org/up
and www.pixelburo.com/up
they both point to the same software on the same server.

Thanks.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 03-01-2002 12:14

alright, i figured it out...

it is called a global alias.

usually, you store whatever common files to all domains in HTTPD's home dir,
usually /home/httpd

then you add a global alias line in httpd's configuration file
/etc/httpd/conf/httpd.conf
or
/etc/httpd/conf/smr.conf <-- i played with this one.

A line should be added like this:

ScriptAlias /haha/ /home/httpd/myscript.sh

now whenever the users go to www.<theirdomain.com>/haha/ , the script will be run as if it belongs to that host itself.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 03-01-2002 12:36

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 03-01-2002 14:13

Actually, you should use ScriptAlias only on folders that contain CGI scripts (that's how cgi-bin folder is configured on each server)... For everything else you should use "normal" aliases: http://httpd.apache.org/docs/mod/mod_alias.html


lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 03-01-2002 15:42

yes, Max.

But i'm doing both, specifiy that this same directory has CGI files and the index file is myscript.sh


Actually, that's how the controlpanel menu on kameelah.org/menu
is set:
ScriptAlias /menu /home/httpd/cp/index.cgi


« BackwardsOnwards »

Show Forum Drop Down Menu