LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10: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 10:58 AM.
 
Old 06-17-2003, 11:57 AM   #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, 12:12 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 01: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



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 05:53 AM
Apache Configuration dramous Linux - Newbie 5 09-27-2004 02:46 PM
apache configuration? jcsg Linux - Newbie 1 06-21-2004 07:08 AM
Apache configuration? sikandar Linux - Software 2 10-21-2003 12:54 PM
Apache configuration arraman Linux - Software 1 07-19-2001 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 AM.

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
Open Source Consulting | Domain Registration