LinuxQuestions.org
Visit Jeremy's Blog.
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 11-25-2005, 10:23 AM   #1
harisund
Member
 
Registered: Sep 2005
Location: Baton Rouge
Distribution: Ubuntu 5.10
Posts: 74

Rep: Reputation: 15
Apache not showing web page


I install base version of Ubuntu (5.10, server install)

I then did

apt-get install apache2

However, once it is installed if I type the ip address of the machine from another machine on the local network, it shows me a folder

Index of /
apache2-default

I read that it is supposed to show me where the configuration files are stored. How do I find that out?

Also, when I had Apache serving my webpages on my Windows machine, the httpd.conf file had everything I needed, and I could assign aliases and do a lot of interesting stuff. Is there a similar configuration file where I can set all options like DocumentRoot, Alias and so on?

Thanks

Regards

Last edited by harisund; 11-25-2005 at 10:41 AM.
 
Old 11-25-2005, 12:12 PM   #2
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
http.conf is in the /etc/apache folder
if you do not have a file named index.html, or index.php or something like that, i think that it will default by showing the contents of the folder.
remember to restart apache to make the changes work if you alter the http.conf
like this.
sudo /etc/init.d/apache restart

your www stuff is located in /var/www
hope this helps
 
Old 11-25-2005, 12:15 PM   #3
harisund
Member
 
Registered: Sep 2005
Location: Baton Rouge
Distribution: Ubuntu 5.10
Posts: 74

Original Poster
Rep: Reputation: 15
A couple more points

Thanks for that reply ..

First, I have apache2 installed, so I have an /etc/apache2 folder.

I must confess I didn't google enough. I understand unlike in the Windows version, the Debian (and consequently Ubuntu) version of Apache2 has everything modularized, which means every configuration is in its own file.

And to change the documentRoot, I can edit / create virtual hosts.

Thanks anway..

With regards

Hari
 
Old 11-25-2005, 12:31 PM   #4
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
no problem, but, if i am not mistaken, you will have a configuration folder /etc/apache and also /etc/apache2.

i am not so sure about ubuntu, but when you install apache on debian, it asks you if you want the configuration split into many files. i have a debian server at work and the virtual hosts are all set up in http.conf.

but, if you got it worked out, kudos ! and welcome to linux !
 
  


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
*@!Z Yarg!!!! Web site in Apache not showing - think it is Permissions! ServerStorm Linux - Software 4 03-17-2005 10:17 AM
Apache web page not working fordb37 Linux - Newbie 1 02-24-2005 09:27 AM
web page with apache regnier Linux - Networking 3 02-15-2005 09:49 PM
Apache web page - refresh dvong3 Linux - General 7 06-26-2003 01:36 PM
Apache web page posting help SSBN Linux - Networking 7 04-28-2003 10:28 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration