Apache2 loading wrong page

5 views
Skip to first unread message

MCT

unread,
Dec 29, 2005, 7:31:31 PM12/29/05
to Linux-Gentoo
So I've been living in google searches for the past week. I've been
combing Apache's website reading all documentation and the man pages.
Here's the history:

Originally, couldn't get any pages to serve at all from my IP. Finally
determined ISP is blocking port 80, so I switched to another port in
httpd.conf. Problem fixed.

New problem: Test page comes up, but not custom page that I made.
This is a very basic html file. I renamed the test page from
index.html to oldindex.html, and named the new page to index.html. IF
I type in URL and append "index.html" to the end of it, then the page
loads. Checked in httpd.conf and /etc/conf.d/apache2. I placed the
"DocumentRoot" statement in httpd.conf to point to where the docs are,
but it doesn't seem to work.

So here's a question: Even though I am using the IP address as the URL
(no registered domain yet), is this considered a virtual host that I
need to parse an entry for, or am I just missing something in the conf
files that need to be tweaked. I keep reading and keep trying things
(making sure to restart the apache2 service each time after a change)
and yet it still doesn't seem to work right.

Any ideas? I'm sure it's something stupid and I am not searching in
the right places, but I thought I'd give it a shot anyhow.

Thanks for any info.

--

MCT

thothonegan

unread,
Dec 29, 2005, 8:30:42 PM12/29/05
to Linux-...@googlegroups.com
On Thursday 29 December 2005 18:31, MCT wrote:
> n entry for, or am I just missing something in the conf
> files that need to be tweaked.  I keep reading and keep trying things
> (making sure to restart the apache2 service each time after a change)
> and yet it still do

Have you edited /etc/apache/vhosts.d/00_default_vhost.conf at all?
Might have to change the default vhost to work on a different port (which has
the DocumentRoot settings).

thothonegan

rob Wolfe

unread,
Dec 29, 2005, 10:37:05 PM12/29/05
to Linux-...@googlegroups.com
One thing to keep in mind...

Make sure that you are not violating the AUP for your internet connection.
Most ISP's that block port 80 also explicitly state in their AUP that you
cannot run a web server (or much of anything else) on the connection.

Most ISP's do not spend any appreciable resources checking this kind of
thing but you dont want them to come knocking for the fees for a
"commercial" account as I have seen happen to a few folks.


MCT

unread,
Dec 30, 2005, 6:27:47 PM12/30/05
to Linux-Gentoo
<snip>

I completely get what you're saying...and thanks for the warning. To
be honest, though, I am mainly doing this for my own enjoyment. I
might put a page up with pics of my kids, or perhaps just a blog of my
experiences with Gentoo, etc for someone else to read, if they are
interested. Mostly, I just want the experience of creating a web
server with Gentoo, and so far, the Gentoo itself has been awesome, but
I am having difficulties with Apache2.

--

MCT

Reply all
Reply to author
Forward
0 new messages