You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Evan Platt <ev...@espphotography.com> on 2009/04/30 01:00:01 UTC

Re: [users@httpd] Unable to configure Apache to use as personal web server

Not to oversimplify things, but if Apache is installed on the laptop, 
I'm guessing you're not going to want this accessable from the 
outside world - ie you wouldn't want ME to be able to access it from 
my house, right?

So what's in this folder? A Index.html file?

You don't need Apache (or any web server) for that. Open up any web 
browser, type C:\directory\index.html, and viola .....

At 03:55 PM 4/29/2009, you wrote:
>I am unable to configure Apache to connect to my local site.
>
>Apache is installed as a personal web server on a notebook computer 
>that uses the Windows Vista operating system.
>
>The Apache installation works, as evidenced by the "It works" index 
>page shown upon using the "<http://localhost>http://localhost" URL.
>
>I have configured the configuration file, httpd, trying to serve up 
>an index of my web sites stored in the My Website folder, which is 
>in the  "c:\users\user" folder.
>
>Here are the configuration statements I believe are relevant:
>
>  ServerRoot "C:/Apache Software Foundation/Apache.2"
>
>  Listen 80
>
>  User daemon
>  Group daemon
>
>  ServerName localhost:80
>
>  DocumentRoot "C:/users/user/my website/"
>
>  <Directory "C:/users/user/my website/">
>
>       Options Indexes FollowSymLinks
>       AllowOverride None
>       Order allow,deny
>       Allow from all
>
>  </Directory>
>
>
>Use of the localhost URL continues to show only the "It works" index page.
>
>I've tried every adjustment of configuration of which I can conceive.
>
>Where am I going wrong?




---------------------------------------------------------------------
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] Unable to configure Apache to use as personal web server

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Jonathan Zuckerman wrote:
>>>
>>> The Apache installation works, as evidenced by the "It works" index page
>>> shown upon using the "<http://localhost>http://localhost" URL.
>>>
>>> I have configured the configuration file, httpd, trying to serve up an
>>> index of my web sites stored in the My Website folder, which is in the
>>>  "c:\users\user" folder.
>>>
>>>  DocumentRoot "C:/users/user/my website/"
>>>
>>>  <Directory "C:/users/user/my website/">

The user that the apache service runs-as must have browse/list access to
the root C:\ directory, C:\users, the C:\users\user directories and
browse/list and read access to C:\users\user\my website and its contents.

Otherwise it can't work out the true directory names 'users', 'user',
'my website' and the actual contents of the site, so the <directory >
processing will terminate and file request is not recognized as legit.


---------------------------------------------------------------------
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] Unable to configure Apache to use as personal web server

Posted by Evan Platt <ev...@espphotography.com>.
At 05:41 PM 4/29/2009, you wrote:

>Evan, a lot of times people want to work on a website which is created
>using a scripting langauge, uses a database, etc..  even if they are
>not connected to the internet at the time, or simply want to save
>bandwidth.  Working on your local webserver allows you to write code
>that will work on the public webserver but does not require an
>internet connection or the packet relay time during development.

I completely understand that. Maybe I misread
"I have configured the configuration file, httpd, trying to serve up 
an index of my web sites stored in the My Website folder, which is in 
the  "c:\users\user" folder."

as the directory had a list of HTML files - ie bookmarks. 


---------------------------------------------------------------------
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] Unable to configure Apache to use as personal web server

Posted by Jonathan Zuckerman <j....@gmail.com>.
>> I am unable to configure Apache to connect to my local site.
>>
>> Apache is installed as a personal web server on a notebook computer that
>> uses the Windows Vista operating system.
>>
>> The Apache installation works, as evidenced by the "It works" index page
>> shown upon using the "<http://localhost>http://localhost" URL.
>>
>> I have configured the configuration file, httpd, trying to serve up an
>> index of my web sites stored in the My Website folder, which is in the
>>  "c:\users\user" folder.
>>
>> Here are the configuration statements I believe are relevant:
>>
>>  ServerRoot "C:/Apache Software Foundation/Apache.2"
>>
>>  Listen 80
>>
>>  User daemon
>>  Group daemon
>>
>>  ServerName localhost:80
>>
>>  DocumentRoot "C:/users/user/my website/"
>>
>>  <Directory "C:/users/user/my website/">
>>
>>      Options Indexes FollowSymLinks
>>      AllowOverride None
>>      Order allow,deny
>>      Allow from all
>>
>>  </Directory>
>>
>>
>> Use of the localhost URL continues to show only the "It works" index page.
>>
>> I've tried every adjustment of configuration of which I can conceive.
>>
>> Where am I going wrong?
On Wed, Apr 29, 2009 at 4:00 PM, Evan Platt <ev...@espphotography.com> wrote:
> Not to oversimplify things, but if Apache is installed on the laptop, I'm
> guessing you're not going to want this accessable from the outside world -
> ie you wouldn't want ME to be able to access it from my house, right?
>
> So what's in this folder? A Index.html file?
>
> You don't need Apache (or any web server) for that. Open up any web browser,
> type C:\directory\index.html, and viola .....
>

Evan, a lot of times people want to work on a website which is created
using a scripting langauge, uses a database, etc..  even if they are
not connected to the internet at the time, or simply want to save
bandwidth.  Working on your local webserver allows you to write code
that will work on the public webserver but does not require an
internet connection or the packet relay time during development.

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