LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache -> Configuration (https://www.linuxquestions.org/questions/linux-newbie-8/apache-configuration-66152/)

Cybers19 06-17-2003 10:57 AM

Apache -> Configuration
 
Hi everybody!

One simple question (i do not know the answer:( )

How schould apache be configured if i want this sutiation?

/var/www -> http://www.mydom.netm -> 192.168.0.2
/mnt/data1/.../scritps -> http://script.mydom.net -> 192.168.0.2

THX in advance

jvannucci 06-17-2003 11:57 AM

This should do the trick. Take care, this example allows everyone access:

<VirtualHost www.mydom.net>
DocumentRoot /var/www/html
ServerName www.mydom.net
<directory /var/www/html>
options indexes
order allow,deny
allow from all
</directory>
</VirtualHost>

<VirtualHost script.mydom.net>
DocumentRoot /mnt/data1/.../scripts
ServerName script.mydom.net
<directory /mnt/data1/.../scripts>
options indexes
order allow,deny
allow from all
</directory>
</VirtualHost>

trickykid 06-17-2003 12:12 PM

You can also always check out the documentation over at www.apache.org in which they have very easy to understand manuals and howto's, etc.

Cybers19 06-17-2003 01:19 PM

now it works....

THX :D


All times are GMT -5. The time now is 09:02 PM.