You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kevin D'Elia <ke...@comcast.net> on 2003/05/06 14:02:43 UTC
[users@httpd] can't see index.html on simple websites
Hello,
I am trying to learn Apache, and have the following setup:
Windows 2000 with Apache 2.0.45 installed as a service; I can go to
localhost just fine.
I have modified my etc/hosts to have two DNS names mapped to the
same IP address, as in:
10.10.32.122 www.butterthlies.com # test host one
10.10.32.122 sales.butterthlies.com # test host two
(if this looks familiar, I am using "Apache: The Definitive Guide"
as my study text)
I have the following httpd.conf:
# Minimal configuration file
ServerName 10.10.32.122
Listen 81
DocumentRoot c:/cygwin/usr/www/APACHE3/site.first/htdocs
PIDFile logs/httpd.pid
LoadModule log_config_module "c:/Program Files/Apache
Group/Apache2/modules/mod_log_config.so"
TransferLog logs/access.log
ErrorLog logs/error.log
I start Apache like this:
apache -d ./site.first (I am in the parent directory of site.first)
Apache starts up fine, since there are entries in the PID file and
the error log for the processes, which map to those in the Task Manager.
Now, when I try to go to "www.butterthlies.com:81" from either
Netscape or Internet Explorer, I get
"The requested URL / was not found on this server." from Netscape and
"Page cannot be displayed" from IE. If I go to
"http://www.butterthlies.com:81/index.html", Netscape shows me the raw
HTML, while IE shows me the formatted HTML, from which I can navigate
normally.
I thought at first that the Apache service was creating some
conflict, but shutting it down and trying all this again did not help
the problem.
What am I doing wrong?
Thanks in advance to all who respond.
Kevin
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can't see index.html on simple websites
Posted by Kevin D'Elia <ke...@comcast.net>.
Thanks, Gordon, unfortunately, that didn't seem to fix it :-(
Gordon Stewart wrote:
> At 12:02 AM 5/7/03 Kevin D'Elia wrote:-
>
>> # Minimal configuration file
>> ServerName 10.10.32.122
>> Listen 81
>
>
>
> Apache starts up fine, since there are entries in the PID file and
> the error log for the processes, which map to those in the Task Manager.
>
>> Now, when I try to go to "www.butterthlies.com:81" from either
>> Netscape or Internet Explorer, I get
>> "The requested URL / was not found on this server." from Netscape and
>> "Page cannot be displayed" from IE. If I go to
>> "http://www.butterthlies.com:81/index.html", Netscape shows me the
>> raw HTML, while IE shows me the formatted HTML, from which I can
>> navigate normally.
>
>
> Im not sure but if you change "listen" to 80 - & re-start the server,
> you wint need the :81 at the end (most servers automatically scan port
> 80 ? )
>
> As to the raw HTML thing - Im not sure on that - Sorry
>
> G
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can't see index.html on simple websites
Posted by Gordon Stewart <go...@slingshot.co.nz>.
At 12:02 AM 5/7/03 Kevin D'Elia wrote:-
># Minimal configuration file
>ServerName 10.10.32.122
>Listen 81
Apache starts up fine, since there are entries in the PID file and the
error log for the processes, which map to those in the Task Manager.
> Now, when I try to go to "www.butterthlies.com:81" from either
> Netscape or Internet Explorer, I get
>"The requested URL / was not found on this server." from Netscape and
>"Page cannot be displayed" from IE. If I go to
>"http://www.butterthlies.com:81/index.html", Netscape shows me the raw
>HTML, while IE shows me the formatted HTML, from which I can navigate normally.
Im not sure but if you change "listen" to 80 - & re-start the server, you
wint need the :81 at the end (most servers automatically scan port 80 ? )
As to the raw HTML thing - Im not sure on that - Sorry
G