[SuSE Linux] Apache default directory
I've been playing with Apache, and it seems that, by default, the "root" directory for the httpd is /usr/docs/httpd/htdocs - in other words, if I type in the name of my Linux machine to a web browser, it opens index.html in that directory by default. Where is this defined? I have searched everywhere I can think of! I want my web server root directory to be elsewhere: can I define that in /etc/httpd/httpd.conf? Thanks for any help. Keith - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Where is this defined? I have searched everywhere I can think of! I want my web server root directory to be elsewhere: can I define that in /etc/httpd/httpd.conf?
You need to look for Document Root, which you can find in srm.conf. Beneath this is the user dir as well, which tells Apache which directory under a users home dir to look for thier webpages when you type <A HREF="http://some-domain.com/~username"><A HREF="http://some-domain.com/~username</A">http://some-domain.com/~username</A</A>> Damon - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
I got SuSE 5.3 today, and this is what I did........ I have a 4 Gb EIDE HDD. I used PARTITION MAGIC to resize my current partition and shrank it down to 2 GB. Using PMagic again, I created a LINUX partition (1.5 GB) and a SWAP PARTITION (1/2 Gb) Then I used BOOT MAGIC ( something like LILO) and added the EXT2 partition to the menu. Everything is cool so far. I pop in the SuSE CD and restart. Computer boots from the CD, and I proceed with the installation procedure. Not a single hitch. SuSE installs flawlessly. Then it starts Linux. I log in as ROOT. Everything proceeds perfectly. Now, what I did was type "SAX" The configurator program came on and by mistake I chose the wrong monitor. So I say save changes, and it tells me that it is attempting to start the X system. My monitor goes crazy. Because of the wrong settings that I chose. I hard boot the computer. POST flys by, and then BOOT MAGIC comes up...... I select linux, and it tries to hand over control to the linux partition. That's where my system dies. It just doesn't boot. What am I doing wrong? v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ Zulfiqar Naushad zulfiqar@shaw.wave.ca ICQ UIN: 6001618 <A HREF="http://members.tor.shaw.wave.ca/~zulfiqar/"><A HREF="http://members.tor.shaw.wave.ca/~zulfiqar/</A">http://members.tor.shaw.wave.ca/~zulfiqar/</A</A>> v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Using PMagic again, I created a LINUX partition (1.5 GB) and a SWAP PARTITION (1/2 Gb)
I hard boot the computer. by by fs ? you may of killed your file system. So get a
the larges swap is 1 gb but it has to be in 128 meg peices. linux boot disk you can get one from <A HREF="ftp://sunsite.unc.edu/pub/Linux/system/recovery"><A HREF="ftp://sunsite.unc.edu/pub/Linux/system/recovery</A">ftp://sunsite.unc.edu/pub/Linux/system/recovery</A</A>> But if you just installed a reinstall would be easyer for some one new.
POST flys by, and then BOOT MAGIC comes up......
I select linux, and it tries to hand over control to the linux partition.
That's where my system dies.
It just doesn't boot.
What am I doing wrong?
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Zulfiqar Naushad zulfiqar@shaw.wave.ca ICQ UIN: 6001618 <A HREF="http://members.tor.shaw.wave.ca/~zulfiqar/"><A HREF="http://members.tor.shaw.wave.ca/~zulfiqar/</A">http://members.tor.shaw.wave.ca/~zulfiqar/</A</A>>
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Try using the boot diskett , then restart yast , and redo the moitor stuff. You can also just simply reintall . If you are only running linux and windows , you realy dont need the boot manager ,as you can use lilo , loadln or just insert a boot disk. You may want to remove the boot manager to rule that one out ? At 09:28 PM 12/7/1998 -0500, you wrote:
I got SuSE 5.3 today, and this is what I did........
I have a 4 Gb EIDE HDD.
I used PARTITION MAGIC to resize my current partition and shrank it down to 2 GB.
Using PMagic again, I created a LINUX partition (1.5 GB) and a SWAP PARTITION (1/2 Gb)
Then I used BOOT MAGIC ( something like LILO) and added the EXT2 partition to the menu.
Everything is cool so far.
I pop in the SuSE CD and restart.
Computer boots from the CD, and I proceed with the installation procedure.
Not a single hitch.
SuSE installs flawlessly. Then it starts Linux.
I log in as ROOT.
Everything proceeds perfectly.
Now, what I did was type "SAX"
The configurator program came on and by mistake I chose the wrong monitor.
So I say save changes, and it tells me that it is attempting to start the X system.
My monitor goes crazy. Because of the wrong settings that I chose.
I hard boot the computer.
POST flys by, and then BOOT MAGIC comes up......
I select linux, and it tries to hand over control to the linux partition.
That's where my system dies.
It just doesn't boot.
What am I doing wrong?
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Zulfiqar Naushad zulfiqar@shaw.wave.ca ICQ UIN: 6001618 <A HREF="http://members.tor.shaw.wave.ca/~zulfiqar/"><A HREF="http://members.tor.shaw.wave.ca/~zulfiqar/</A">http://members.tor.shaw.wave.ca/~zulfiqar/</A</A>>
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
HI! First of all, great thing using Apache! Well, you've obviously found the right directory... Unfortunately you're looking at the wrong file! The one to edit is access.conf, in which you define the root-directory. The "Magic Line" is <Directory /home/htdocs> Probably you'll find your line as <Directory /usr/docs/httpd/htdocs> The file should contain some notes on what other things there are available to set. Another thing you might find useful is the neat program (or perl-script) is apacheconfig . Make backups of the config files in /etc/httpd/, access.conf, httpd.conf, srm.conf and mime.types, and then run apacheconfig (as root!). Good luck! Fredrik Wendt On Mon, 7 Dec 1998, Edmunds, Keith wrote:
I've been playing with Apache, and it seems that, by default, the "root" directory for the httpd is /usr/docs/httpd/htdocs - in other words, if I type in the name of my Linux machine to a web browser, it opens index.html in that directory by default.
Where is this defined? I have searched everywhere I can think of! I want my web server root directory to be elsewhere: can I define that in /etc/httpd/httpd.conf?
Thanks for any help.
Keith - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (6)
-
ceda@cpu.nu
-
charlesiii@theverge.com
-
damon@denzil71.demon.co.uk
-
KEdmunds@eu.wcom.net
-
samelash@ix.netcom.com
-
zulfiqar@shaw.wave.ca