LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with Apache2 configuration. (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-apache2-configuration-4175542113/)

ochocobull 05-10-2015 02:07 AM

Help with Apache2 configuration.
 
Hello everyone,

I need a little bit of help. I am attempting to install a couple of web based applications, (loganalyzer and rancid). I am running Debian Wheezy and I am creating two separate directories (/var/www/loganalyzer and /var/www/rancid). My overall goal is to be able to connect to these different applications on the same server by typing in the following urls (http://IP_address/loganalyzer and http://IP_address/rancid) respectively.

I am beating my head against the wall configuring the Apache web service. I cannot get these applications to pull up. All I get is a blank screen with both instances.

Can anyone point me in the right direction to help me get this task completed? I truly appreciate the help and if there is any other information you need from me please let me know.

descendant_command 05-10-2015 03:49 AM

What do your apache logs say?

ochocobull 05-10-2015 04:17 AM

Nothing in the access log or other_vhosts_access.log

the only entry in the error log is "Fri May 08 14:50:45 2015] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations"

All configuration files are loaded into the above mentioned directories and the Apache2 service stops and starts with no errors. Thanks for the quick response.

descendant_command 05-10-2015 04:51 AM

That suggests your client is not even connecting to Apache.
Maybe you don't have it listening on that IP address, or you have some firewall or such.

ochocobull 05-10-2015 04:56 AM

When I connect to the default web page I get the generic:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

This entry now shows up in the access.log file:

192.168.1.100 - - [10/May/2015:02:52:26 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"
192.168.1.100 - - [10/May/2015:02:52:26 -0700] "GET /favicon.ico HTTP/1.1" 404 499 "http://10.20.20.154/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"

I am fairly certain this is a simple configuration issue with virtual hosts or a derivative thereof but I really don't know enough about Apache2 to make an educated guess.

descendant_command 05-10-2015 05:00 AM

Nothing in the error logs?
Apache has 'read' rights to the dir's and their contents?

ochocobull 05-10-2015 05:02 AM

I did get another log entry in the error.log file

[Sun May 10 02:52:26 2015] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico, referer: http://1x.x.x4/

descendant_command 05-10-2015 05:04 AM

Please use CODE tags like this:
Code:

paste code here
Quote:

I am fairly certain this is a simple configuration issue with virtual hosts or a derivative thereof but I really don't know enough about Apache2 to make an educated guess.
You're not using virtual hosts though, simply subdir's of the default host.

ochocobull 05-10-2015 05:07 AM

That was my assumption. I am going to try to install the loganalyzer application once again. If need be I will remove the entire application and try again. I really do thank you for your time. Have a great night.

jobart08 05-10-2015 08:06 PM

Try this link. This vid helped me in my virtual hosts configuration.

www.youtube.com/watch?v=Ei-ah2ruEkM

ochocobull 05-11-2015 12:00 AM

Thank you jobart08 I appreciate the link.

zhjim 05-11-2015 02:24 AM

Please provide the output of apache2ctl -S. This will list all host configurations apache sees and have affect. This is to rule out that you don't use a virtual host configuration.

Normaly apache uses index.html files in a directory if you only use the directory as the URL. Make sure you have those inside the rancid and loganalyzer directories. Maybe create a simple file just to make sure apache is happy.

Maybe open up a second terminal on the web server and tail -f /var/log/apache/error.log or tail -f /var/log/apache/access.log to see what apache logs while you open up the webpages.


All times are GMT -5. The time now is 02:34 AM.