LinuxQuestions.org
Visit Jeremy's Blog.
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 03-26-2004, 05:54 PM   #1
ziggis-soft
Member
 
Registered: Oct 2003
Location: new brunswick canada
Distribution: red hat ,suse 9.0 ,dsl-dam small linux
Posts: 42

Rep: Reputation: 15
Unhappy maping hdb1 to my server


Hi i have suse pro 9.0 and have configured (xampp)lampp bundle for linux .
It works fine i had a hard time to configure it but now it works good . The only thing now is that i have a 20 gig hd witch is mounted at /data2/hdb1/
any idie how to configure it so that it would be mapted to my apache web server (acessible to outside world ) .


Thanks
 
Old 03-26-2004, 11:21 PM   #2
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Rep: Reputation: 15
Set up a partition on your second drive and have it mount at startup (possibly at /www) then in your httpd.conf, (Most likely in /etc/apache/) add the directory under something like serverroot (if you want it to host ALL of your site/files) then restart apache, and it should work.
 
Old 03-28-2004, 06:55 PM   #3
ziggis-soft
Member
 
Registered: Oct 2003
Location: new brunswick canada
Distribution: red hat ,suse 9.0 ,dsl-dam small linux
Posts: 42

Original Poster
Rep: Reputation: 15
ok that what i tought but is there a way to have more tahn one root dir like this example

<directory /etc/server1; /data/server2; /data/server3>
</directory>
thanks
 
Old 03-28-2004, 08:03 PM   #4
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
for that you might want to create a virtual server on the httpd.conf file
I'll show you an example of mine :

<Directory /etc/server1>
Options Indexes Multiviews
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>

<VirtualHost *:80>
DocumentRoot /etc/server1
ServerName domain.name.net //example
ErrorLog logs/host1-error_log
Transferlog logs/host1-access_log
</VirtualHost>

and the best practice is to have each directory be its own virtual server

good luck
 
Old 03-28-2004, 08:05 PM   #5
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
BTW I meant to say Virtual host
also documentation:
http://httpd.apache.org/docs-2.0/vhosts/
 
Old 04-01-2004, 11:36 AM   #6
ziggis-soft
Member
 
Registered: Oct 2003
Location: new brunswick canada
Distribution: red hat ,suse 9.0 ,dsl-dam small linux
Posts: 42

Original Poster
Rep: Reputation: 15
thanks man il try that check it out www.z-soft.tk keep in mind that im not done
 
  


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
maping keys of multiple keyboards dupontct Linux - General 1 10-20-2005 01:41 PM
Advanced Key maping 4of11 Linux - General 0 10-07-2004 02:50 PM
serial port maping? blackzone Red Hat 1 08-16-2004 12:54 AM
hdb1 hdb1 spooge Linux - Hardware 12 02-22-2003 06:11 PM
Keyboard Maping with rlogin from HP-UX Jacknight Linux - General 0 12-06-2001 12:14 PM


All times are GMT -5. The time now is 04:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration