LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2003, 05:33 PM   #1
Kevin_keith
LQ Newbie
 
Registered: Jul 2003
Location: Tema, Ghana
Distribution: red hat
Posts: 2

Rep: Reputation: 0
Apache


I finally managed to get apache running. Can someone help me out with where to put the site files so i can get the site running.
 
Old 07-05-2003, 05:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
You place your files in whatever directory you have defined in your httpd.conf file.

Take a look at your configuration file, it tells you everything about your server and what directories are being used.

If your using the latest Redhat, sometimes its in /var/www or /var/html or even sometimes in /home/html....
 
Old 07-05-2003, 06:52 PM   #3
grizzly
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1, Solaris 9, and IPcop
Posts: 101

Rep: Reputation: 15
I recently installed apache 1.3, and the default directory was:
/usr/local/httpd/htdocs
This can certainly be changed in the .conf file, and I am not sure if Apache 2.* changed this default location.
 
Old 07-06-2003, 09:36 AM   #4
knelsky
LQ Newbie
 
Registered: Mar 2003
Posts: 10

Rep: Reputation: 0
i would like to know how to make virtualhost in apache? with the same ip!
do i have to change bind config to add the new pseudo hosts?
 
Old 07-06-2003, 09:49 AM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
RTFM
 
Old 07-06-2003, 10:02 AM   #6
knelsky
LQ Newbie
 
Registered: Mar 2003
Posts: 10

Rep: Reputation: 0
WTF
 
Old 07-06-2003, 10:12 AM   #7
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Read the F**king manual. It's all explained in there, you have a copy with your apache install. There's also a great feature for this forum called Search which will return loads of related threads. Also, Google is your friend.
Since you dont say which apache version you have, I'm gunna assume 2.0.xx. Virtual hosts.
And lastly, dont highjack a thread topic(no matter how cr*p it was too), start your own next time after searching and reading.
 
Old 07-06-2003, 10:47 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
Lets play nice and always try to refrain from telling newcomers to just RTFM please. If that is going to be your only reply, then don't reply at all. Regards.
 
Old 07-06-2003, 11:36 AM   #9
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
To be fair it was a link to the manual, and I did post again to explain more. Point taken though.
 
Old 07-07-2003, 09:54 AM   #10
knelsky
LQ Newbie
 
Registered: Mar 2003
Posts: 10

Rep: Reputation: 0
WTF

what the f*4#@^%k is ur problem ..if u dont wanna answer then don't ..
that's why this this is called LINUXQUESTIONS.org so that ppl can ask...
dont tell me to RTFM.....go f^%%^&^ ur self
 
Old 07-07-2003, 11:52 AM   #11
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
Gentlemen (and/or ladies)...let's be helpful rather than rude. That's why we're all here.

At the bottom of the httpd.conf file is a sample VirtualHost for you to view. This should help you somewhat understand it. There is also an extensive section in the manual regarding this question. Check out the Apache HTTPD site for details.

*After* you have learned how to do it manually, to speed up the process I recommend Webmin to ease the creation and administration of VirtualHosts (although I'm sure there are many folks here who would disagree ).

At the very least, you will need

NameVirtualHost xxx.xxx.xxx.xxx
<VirtualHost xxx.xxx.xxx.xxx>
ServerName host.domain.tld
DocumentRoot /path/to/html
</VirtualHost>

There is a mess of other optional directives you can use too.

Hope that helps.
 
Old 07-07-2003, 01:45 PM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
Re: WTF

Quote:
Originally posted by knelsky
what the f*4#@^%k is ur problem ..if u dont wanna answer then don't ..
that's why this this is called LINUXQUESTIONS.org so that ppl can ask...
dont tell me to RTFM.....go f^%%^&^ ur self
knelsky,

Lets not start any personal attacks, name calling or flames. I already addressed this issue in my first response for members to not just direct other members to RTFM or the like.

Regards.
 
  


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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 05:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 08:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:28 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