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
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
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.
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