This is a discussion on Initial httpd.conf within the Windows Web Servers forums, part of the Web Server and Related Forums category; I am setting up Apache Webserver on my PC for the first time. When I go in to configure httpd....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am setting up Apache Webserver on my PC for the first time.
When I go in to configure httpd.conf, I change the Document Root to the Windows path to my documents (I am running Windows 2000 Professional). When I bring up http://127.0.0.1, I get the standard 'Seeing this instead of the website you expected?'. Try as I might, I cannot figure out why. Can anyone tell me how to fix this? Fred |
|
|||
|
On 08 Oct 2004, Fred Atkinson <fatkinson@mishmash.com> wrote in
news:324dm0d1i3egpgvo4cvmi57gtc0t769cth@4ax.com: > When I go in to configure httpd.conf, I change the Document Root > to the Windows path to my documents (I am running Windows 2000 > Professional). > > When I bring up http://127.0.0.1, I get the standard 'Seeing this > instead of the website you expected?'. Try as I might, I cannot > figure out why. Did you restart the server after the change? Did you edit the Directory directive to match the new document root location? Are you using forward slashes in your path name? |
|
|||
|
On 08 Oct 2004, Fred Atkinson <fatkinson@mishmash.com> wrote in
news:aebdm0psumvohgv5gmt786qnnl747bet7b@4ax.com: > The answer to all three questions is yes. OK. Some more thoughts... Any chance that you're editing the wrong apache.conf? Is your path enclosed in quote marks? Is your main document in the documentroot called "index.html"? What happens if you delete or move all the apache-installed default documents well out of the way? |
|
|||
|
On Fri, 08 Oct 2004 16:12:09 GMT, Nil <rednoise@REMOVETHIScomcast.net>
wrote: >Any chance that you're editing the wrong apache.conf? I did a search for httpd.conf on my entire hard drive and did not find another file named httpd.conf. And I found no file called apache.conf. >Is your path enclosed in quote marks? Yes. >Is your main document in the documentroot called "index.html"? No. I appended it to have /index.html on the end of it. Didn't make any difference. >What happens if you delete or move all the apache-installed default >documents well out of the way? I'm not sure which file is the default document. This is version 2.0, in case I didn't mention it. I'm still a little hazy about the new stuff. Fred |
|
|||
|
On 08 Oct 2004, Fred Atkinson <fatkinson@mishmash.com> wrote in
news:1btdm0tuloqsstv75on7tsk4l4r2k37383@4ax.com: > I did a search for httpd.conf on my entire hard drive and did > not find another file named httpd.conf. And I found no file > called apache.conf. Sorry, I meant httpd.conf . >>What happens if you delete or move all the apache-installed >>default documents well out of the way? > > I'm not sure which file is the default document. This is > version 2.0, in case I didn't mention it. I'm still a little hazy > about the new stuff. I think the default documents are called something like "index.html.en". There are other similar documents for other languages. You should empty the document root directory of everything but your main document and make sure it's called simply "index.html". If you must call it something else, you will have to adjust some of the directives in httpd.conf for apache to serve them by default. |
|
|||
|
I found index.html.en. When I renamed it and pulled up the
loopback address again, there was nothing there. So I changed the name back and it worked again. It doesn't seem to matter what I change, I cannot retarget it to my Web documents. Argh! Fred |
|
|||
|
On 08 Oct 2004, Fred Atkinson <fatkinson@mishmash.com> wrote in
news:qhbem01gb07t8g1qim98ri99qthscdgek3@4ax.com: > I found index.html.en. When I renamed it and pulled up the > loopback address again, there was nothing there. So I changed the > name back and it worked again. > > It doesn't seem to matter what I change, I cannot retarget it > to my Web documents. Somehow I get the feeling there's more to the story than what you've said so far. Was index.html.en living in the directory you had set to be the documentroot? Is your own personal main document named "index.html"? If the above is true, it should work if your httpd.conf is correct. It doesn't make sense to me that apache is serving some documents but not others. It should be either all or none. I'm not an expert, but my setup is similar to yours, and my pretty much just worked out of the box, except those times when I've messed it up. Here are some parts of my httpd.conf that might be relevant: Listen 8081 DocumentRoot "C:/apache/htdocs" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "C:/apache/htdocs"> Order allow,deny Allow from all </Directory> DirectoryIndex index.html index.html.var |
|
|||
|
On Sat, 09 Oct 2004 05:12:33 GMT, Nil <rednoise@REMOVETHIScomcast.net>
wrote: >On 08 Oct 2004, Fred Atkinson <fatkinson@mishmash.com> wrote in >news:qhbem01gb07t8g1qim98ri99qthscdgek3@4ax.com : > >> I found index.html.en. When I renamed it and pulled up the >> loopback address again, there was nothing there. So I changed the >> name back and it worked again. >> >> It doesn't seem to matter what I change, I cannot retarget it >> to my Web documents. > >Somehow I get the feeling there's more to the story than what you've >said so far. There probably is. But I have yet to figure it out. >Was index.html.en living in the directory you had set to be the >documentroot? Is your own personal main document named "index.html"? It was in the htdocs directory. No, it is not my own personal index.html. >If the above is true, it should work if your httpd.conf is correct. It >doesn't make sense to me that apache is serving some documents but not >others. It should be either all or none. I'm not an expert, but my >setup is similar to yours, and my pretty much just worked out of the >box, except those times when I've messed it up. It is serving the initial Web page that comes installed in Apache Webserver for Windows version 2.0. Well, I've changed the path to DocumentRoot to the directory that holds my Web pages. Still there is no change. I even tried rebooting the compter so it would reread everything and that didn't make any difference. - >Here are some parts of my httpd.conf that might be relevant: > >Listen 8081 > >DocumentRoot "C:/apache/htdocs" > ><Directory /> > Options FollowSymLinks > AllowOverride None ></Directory> > ><Directory "C:/apache/htdocs"> > Order allow,deny > Allow from all ></Directory> > >DirectoryIndex index.html index.html.var |
|
|||
|
Are you sure you haven't done anything with VirtualHost's at the bottom of
the file? Are you sure you are not starting Apache with some parameter that selects which httpd.conf to use or something? Did you install the installer from apache.org, or some other package? -- // DvDmanDT MSN: dvdmandt€hotmail.com Mail: dvdmandt€telia.com "Fred Atkinson" <fatkinson@mishmash.com> skrev i meddelandet news:1l0fm0tpaiqcqjcgim71c07bl1j12ahrtb@4ax.com... > On Sat, 09 Oct 2004 05:12:33 GMT, Nil <rednoise@REMOVETHIScomcast.net> > wrote: > > >On 08 Oct 2004, Fred Atkinson <fatkinson@mishmash.com> wrote in > >news:qhbem01gb07t8g1qim98ri99qthscdgek3@4ax.com : > > > >> I found index.html.en. When I renamed it and pulled up the > >> loopback address again, there was nothing there. So I changed the > >> name back and it worked again. > >> > >> It doesn't seem to matter what I change, I cannot retarget it > >> to my Web documents. > > > >Somehow I get the feeling there's more to the story than what you've > >said so far. > > There probably is. But I have yet to figure it out. > > >Was index.html.en living in the directory you had set to be the > >documentroot? Is your own personal main document named "index.html"? > > It was in the htdocs directory. No, it is not my own personal > index.html. > > >If the above is true, it should work if your httpd.conf is correct. It > >doesn't make sense to me that apache is serving some documents but not > >others. It should be either all or none. I'm not an expert, but my > >setup is similar to yours, and my pretty much just worked out of the > >box, except those times when I've messed it up. > > It is serving the initial Web page that comes installed in > Apache Webserver for Windows version 2.0. > > Well, I've changed the path to DocumentRoot to the directory > that holds my Web pages. Still there is no change. I even tried > rebooting the compter so it would reread everything and that didn't > make any difference. - > > >Here are some parts of my httpd.conf that might be relevant: > > > >Listen 8081 > > > >DocumentRoot "C:/apache/htdocs" > > > ><Directory /> > > Options FollowSymLinks > > AllowOverride None > ></Directory> > > > ><Directory "C:/apache/htdocs"> > > Order allow,deny > > Allow from all > ></Directory> > > > >DirectoryIndex index.html index.html.var > |
| Thread Tools | |
| Display Modes | |
|
|