LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2003, 11:57 AM   #1
Cybers19
Member
 
Registered: May 2003
Location: Germany - Zöbingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Rep: Reputation: 15
Question 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

Last edited by Cybers19; 06-17-2003 at 11:58 AM.
 
Old 06-17-2003, 12:57 PM   #2
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
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>
 
Old 06-17-2003, 01:12 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 06-17-2003, 02:19 PM   #4
Cybers19
Member
 
Registered: May 2003
Location: Germany - Zöbingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Original Poster
Rep: Reputation: 15
now it works....

THX
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache configuration BoardinBum Linux - Networking 3 12-29-2004 06:53 AM
Apache Configuration dramous Linux - Newbie 5 09-27-2004 03:46 PM
apache configuration? jcsg Linux - Newbie 1 06-21-2004 08:08 AM
Apache configuration? sikandar Linux - Software 2 10-21-2003 01:54 PM
Apache configuration arraman Linux - Software 1 07-19-2001 01:56 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration