OT - Apache Web Server Help Needed



 Religions > Atheism > OT - Apache Web Server Help Needed

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: Religions > Atheism
User: "Elroy Willis"
Date: 04 Jul 2006 06:53:35 AM
Object: OT - Apache Web Server Help Needed
Any Apache gurus around here?
I'm struggling with directory access problems here on my home network,
and have just about given up.
--
Elroy Willis
www.elroysemporium.com
.

User: "Rev. Karl E. Taylor"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 07:54:13 AM
Elroy Willis wrote:

Any Apache gurus around here?

I'm struggling with directory access problems here on my home network,
and have just about given up.

I run Apache 2.x here Elroy, what's up?
--
There are none more ignorant and useless,
than they that seek answers on their knees,
with their eyes closed.
____________________________________________________________________
Rev. Karl E. Taylor

A.A #1143 a=45, m=23, f=20
Apostle of Dr. Lao EAC: Virgin Conversion Unit Director
____________________________________________________________________
.
User: "Elroy Willis"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 08:29:51 AM
Rev. Karl E. Taylor <ktayloraz@getnet.net> wrote in alt.atheism

Elroy Willis wrote:

Any Apache gurus around here?
I'm struggling with directory access problems here on my home network,
and have just about given up.

I run Apache 2.x here Elroy, what's up?

Hi Karl.
I'm running Apache/2.0.40 .
I've got everything working up to the point where I want to give
access to other directories on my hard drive. This is an internal
web server just for my own home use, to test out web pages and
nobody can get to it from the internet so security isn't a concern
for now. I want to grant full access to me, for whatever directories
I choose.
I access it via "http:192.168.1.102" for now.
My http root server directory is "/var/www/html" and I can access all
the individual files in that directory just fine, but beyond that,
nothing. I get permission errors when trying to access the
directories I've added to the httpd.conf file.
I added the following to httpd.conf and restarted httpd several times,
but it doesn't seem to be picking up the changes.
<Directory "/home/elroy">
AllowOverride None
order allow,deny
allow from all
Options all
</Directory>
I don't care about authentication for now, so should the above be
enough to get it working right? I want everything underneath
/home/elroy to be accessible via the web server. I've got some CGI
stuff under there, so CGI needs to be enabled as well as PHP.
--
Elroy Willis
www.elroysemporium.com
.
User: "Rev. Karl E. Taylor"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 09:30:26 AM
Elroy Willis wrote:

Rev. Karl E. Taylor <

> wrote in alt.atheism

Elroy Willis wrote:


Any Apache gurus around here?


I'm struggling with directory access problems here on my home network,
and have just about given up.


I run Apache 2.x here Elroy, what's up?


Hi Karl.

I'm running Apache/2.0.40 .

I've got everything working up to the point where I want to give
access to other directories on my hard drive. This is an internal
web server just for my own home use, to test out web pages and
nobody can get to it from the internet so security isn't a concern
for now. I want to grant full access to me, for whatever directories
I choose.

I access it via "http:192.168.1.102" for now.

My http root server directory is "/var/www/html" and I can access all
the individual files in that directory just fine, but beyond that,
nothing. I get permission errors when trying to access the
directories I've added to the httpd.conf file.

I added the following to httpd.conf and restarted httpd several times,
but it doesn't seem to be picking up the changes.

<Directory "/home/elroy">
AllowOverride None
order allow,deny
allow from all
Options all
</Directory>

I don't care about authentication for now, so should the above be
enough to get it working right? I want everything underneath
/home/elroy to be accessible via the web server. I've got some CGI
stuff under there, so CGI needs to be enabled as well as PHP.

The only way I've ever been able to get this to work is by use of
symbolic links. To wit:
ln -s /home/elroy /var/www/html/elroy
then, your url would be, http://localhost/elroy.
The data is stored in one location, but you are accessing it through a
link to that location.
You also need this in your httpd.conf file:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
I know it seems weird, and you'd think by reading the documentation that
you could call any directory you wanted. Unfortunately, Apache is very
picky about that whole root directory thing.
What are you running your's on? Mine is Solaris 9 x86 on a Compaq
Prolient 4way box.
--
There are none more ignorant and useless,
than they that seek answers on their knees,
with their eyes closed.
____________________________________________________________________
Rev. Karl E. Taylor

A.A #1143 a=45, m=23, f=20
Apostle of Dr. Lao EAC: Virgin Conversion Unit Director
____________________________________________________________________
.

User: "Fester"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 10:44:05 PM
Elroy Willis wrote:

Rev. Karl E. Taylor <ktayloraz@getnet.net> wrote in alt.atheism


Elroy Willis wrote:



Any Apache gurus around here?



I'm struggling with directory access problems here on my home network,
and have just about given up.



I run Apache 2.x here Elroy, what's up?



Hi Karl.

I'm running Apache/2.0.40 .

I've got everything working up to the point where I want to give
access to other directories on my hard drive. This is an internal
web server just for my own home use, to test out web pages and
nobody can get to it from the internet so security isn't a concern
for now. I want to grant full access to me, for whatever directories
I choose.

I access it via "http:192.168.1.102" for now.

My http root server directory is "/var/www/html" and I can access all
the individual files in that directory just fine, but beyond that,
nothing. I get permission errors when trying to access the
directories I've added to the httpd.conf file.

I added the following to httpd.conf and restarted httpd several times,
but it doesn't seem to be picking up the changes.

<Directory "/home/elroy">
AllowOverride None
order allow,deny
allow from all
Options all
</Directory>

I don't care about authentication for now, so should the above be
enough to get it working right? I want everything underneath
/home/elroy to be accessible via the web server. I've got some CGI
stuff under there, so CGI needs to be enabled as well as PHP.

You need to set an alias above the <Directory> block. This is required
for all directories not under your server root.
Insert this:
Alias /elroy /home/elroy
You should probably look up the UserDir mod as well to see how to
generalize home dir access. typically it would be something like:
UserDir public_html
and files located under /home/elroy/public_html would be accessed as URL:
yourdomain/~elroy/
<Directory /home/*/public_html>
...
</Directory>
--
<^}})<
/\/\
.
User: "Elroy Willis"

Title: Re: OT - Apache Web Server Help Needed 05 Jul 2006 12:57:21 PM
Fester <not@home.com> wrote in alt.atheism

Elroy Willis wrote:
You need to set an alias above the <Directory> block. This is required
for all directories not under your server root.
Insert this:
Alias /elroy /home/elroy
You should probably look up the UserDir mod as well to see how to
generalize home dir access. typically it would be something like:
UserDir public_html
and files located under /home/elroy/public_html would be accessed as URL:
yourdomain/~elroy/
<Directory /home/*/public_html>
...
</Directory>

I got everything working the way I want now, thanks for the help.
By chance do you happen to know how to grab the actual current IP
address from the router with some command? Right now I go
through the web browser to access the router and it shows my
actual IP address that my DSL provider assigns. Since I'm on
DSL the address changes whenever the router has to reconnect.
--
Elroy Willis
www.elroysemporium.com
.
User: "Fester"

Title: Re: OT - Apache Web Server Help Needed 05 Jul 2006 05:22:25 PM
Elroy Willis wrote:

Fester <not@home.com> wrote in alt.atheism


Elroy Willis wrote:



You need to set an alias above the <Directory> block. This is required
for all directories not under your server root.



Insert this:



Alias /elroy /home/elroy



You should probably look up the UserDir mod as well to see how to
generalize home dir access. typically it would be something like:



UserDir public_html



and files located under /home/elroy/public_html would be accessed as URL:



yourdomain/~elroy/



<Directory /home/*/public_html>
...
</Directory>



I got everything working the way I want now, thanks for the help.

Good to hear!

By chance do you happen to know how to grab the actual current IP
address from the router with some command? Right now I go
through the web browser to access the router and it shows my
actual IP address that my DSL provider assigns. Since I'm on
DSL the address changes whenever the router has to reconnect.

I use a program Python program called "flashdns" which discovers my
dynamic IP and if it has changed, sends an update to Zone Edit which I
use as my name server. I run it from cron as an hourly job. Here's the
home page if you're interested:
http://smtguru.tripod.com/flashdns/
BTW, I'm glad to offer you my help here (as are others I'm glad to see),
but you're likely to get much better advice by posting questions like
these to comp.os.linux, or some such NG.
--
<^}})<
/\/\
.
User: "Elroy Willis"

Title: Re: OT - Apache Web Server Help Needed 06 Jul 2006 08:03:54 AM
Fester <not@home.com> wrote in alt.atheism

Elroy Willis wrote:

I got everything working the way I want now, thanks for the help.

Good to hear!

By chance do you happen to know how to grab the actual current IP
address from the router with some command? Right now I go
through the web browser to access the router and it shows my
actual IP address that my DSL provider assigns. Since I'm on
DSL the address changes whenever the router has to reconnect.

I use a program Python program called "flashdns" which discovers my
dynamic IP and if it has changed, sends an update to Zone Edit which I
use as my name server. I run it from cron as an hourly job. Here's the
home page if you're interested:
http://smtguru.tripod.com/flashdns/

I figured out how to do it with a command line PHP program which loads
the web page the router serves up and extracts the IP Address line and
pipes it through grep and sed to extract the actual address. Works
pretty well and it only took me half an hour or so to write. Lemme
know if you wanna see the code.

BTW, I'm glad to offer you my help here (as are others I'm glad to see),
but you're likely to get much better advice by posting questions like
these to comp.os.linux, or some such NG.

Yeah, I thought about posting the question there, but I wanted to help
disprove the idea that all us atheists do when we get together around
here is make fun of theists.
--
Elroy Willis
www.elroysemporium.com
.


User: ""

Title: Re: OT - Apache Web Server Help Needed 05 Jul 2006 01:17:04 PM
In <b0vna21dj2mfb90l385ho7gb33lup0cbgb@4ax.com>, on 07/05/06
at 05:57 PM, Elroy Willis <elroywillis@swbell.net> said:

Fester <not@home.com> wrote in alt.atheism

Elroy Willis wrote:
You need to set an alias above the <Directory> block. This is required
for all directories not under your server root.
Insert this:
Alias /elroy /home/elroy

I got everything working the way I want now, thanks for the help.

Hip hip HOOOORRRRAAAAy

By chance do you happen to know how to grab the actual current IP address
from the router with some command? Right now I go
through the web browser to access the router and it shows my actual IP

Read the roiuter documentation. A common one is 192.168.123.255.

address that my DSL provider assigns. Since I'm on DSL the address
changes whenever the router has to reconnect.

Then get a copy of hover.exe from http://nonags.com net tools.
HTH
walksalone who remembers the fun of finding critical urls, with no
documentation.
--
The flower that follows the sun does so even on cloudy days.
Robert Leighton (1611-1684)
--
Posted via a free Usenet account from http://www.teranews.com
.
User: "Fester"

Title: Re: OT - Apache Web Server Help Needed 05 Jul 2006 06:46:42 PM
wrote:

In <b0vna21dj2mfb90l385ho7gb33lup0cbgb@4ax.com>, on 07/05/06
at 05:57 PM, Elroy Willis <elroywillis@swbell.net> said:




Fester <not@home.com> wrote in alt.atheism



Elroy Willis wrote:



You need to set an alias above the <Directory> block. This is required
for all directories not under your server root.



Insert this:



Alias /elroy /home/elroy




I got everything working the way I want now, thanks for the help.



Hip hip HOOOORRRRAAAAy


By chance do you happen to know how to grab the actual current IP address


from the router with some command? Right now I go


through the web browser to access the router and it shows my actual IP



Read the roiuter documentation. A common one is 192.168.123.255.

You're referring to the private network address (which is usually
something like 192.168.0.1) and is not dynamic. I'm quite sure that he
is interested in programatically discovering the external dynamic IP.

address that my DSL provider assigns. Since I'm on DSL the address
changes whenever the router has to reconnect.



Then get a copy of hover.exe from http://nonags.com net tools.

HTH

walksalone who remembers the fun of finding critical urls, with no
documentation.



--
<^}})<
/\/\
.
User: ""

Title: Re: OT - Apache Web Server Help Needed 05 Jul 2006 09:35:26 PM
In <CbYqg.6235$4c7.2828@tornado.southeast.rr.com>, on 07/05/06
at 11:46 PM, Fester <not@home.com> said:

walksalone@dastardly.dirty.deeds.done.dirt.cheap.llc wrote:

In <b0vna21dj2mfb90l385ho7gb33lup0cbgb@4ax.com>, on 07/05/06
at 05:57 PM, Elroy Willis <elroywillis@swbell.net> said:




Fester <not@home.com> wrote in alt.atheism



Elroy Willis wrote:

snip

By chance do you happen to know how to grab the actual current IP address


from the router with some command? Right now I go


through the web browser to access the router and it shows my actual IP



Read the roiuter documentation. A common one is 192.168.123.255.

You're referring to the private network address (which is usually

That was what I got from his question, yes.

something like 192.168.0.1) and is not dynamic. I'm quite sure that he
is interested in programatically discovering the external dynamic IP.

Then I suspect he would have said gateway. After all, Elroy does have some
experience in the area.

address that my DSL provider assigns. Since I'm on DSL the address
changes whenever the router has to reconnect.



Then get a copy of hover.exe from http://nonags.com net tools.

HTH

walksalone who remembers the fun of finding critical urls, with no
documentation.

walksalone who wonders, though it does not matter, where that one came
from.
--
"America is at that awkward stage. It's too late to work within the
system, but too early to shoot the bastards."
Claire Wolfe
--
Posted via a free Usenet account from http://www.teranews.com
.





User: "Kevin Anthoney"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 11:27:43 AM
Elroy Willis wrote:

Rev. Karl E. Taylor <ktayloraz@getnet.net> wrote in alt.atheism

Elroy Willis wrote:


Any Apache gurus around here?


I'm struggling with directory access problems here on my home network,
and have just about given up.


I run Apache 2.x here Elroy, what's up?


Hi Karl.

I'm running Apache/2.0.40 .

I've got everything working up to the point where I want to give
access to other directories on my hard drive. This is an internal
web server just for my own home use, to test out web pages and
nobody can get to it from the internet so security isn't a concern
for now. I want to grant full access to me, for whatever directories
I choose.

I access it via "http:192.168.1.102" for now.

My http root server directory is "/var/www/html" and I can access all
the individual files in that directory just fine, but beyond that,
nothing. I get permission errors when trying to access the
directories I've added to the httpd.conf file.

I added the following to httpd.conf and restarted httpd several times,
but it doesn't seem to be picking up the changes.

<Directory "/home/elroy">
AllowOverride None
order allow,deny
allow from all
Options all
</Directory>

I don't care about authentication for now, so should the above be
enough to get it working right? I want everything underneath
/home/elroy to be accessible via the web server. I've got some CGI
stuff under there, so CGI needs to be enabled as well as PHP.

Does the web server have enough permissions to access /home/elroy? What's
the output of the command:
ls -ld /home/elroy
--
Kevin Anthoney
kanthoney[a]dsl.pipex.com
.
User: "Elroy Willis"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 01:36:17 PM
Kevin Anthoney <kevin_anthoney@hotmail.com> wrote in alt.atheism

Elroy Willis wrote:

I don't care about authentication for now, so should the above be
enough to get it working right? I want everything underneath
/home/elroy to be accessible via the web server. I've got some CGI
stuff under there, so CGI needs to be enabled as well as PHP.

Does the web server have enough permissions to access /home/elroy? What's
the output of the command:
ls -ld /home/elroy

That was my problem. :)
The /home/elroy had 700 instead of 755.
Everything's working like it should now, thanks everyone who
responded.
--
Elroy Willis
www.elroysemporium.com
.


User: "Chris Johnson"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 11:15:57 AM
Elroy Willis wrote:

Rev. Karl E. Taylor <ktayloraz@getnet.net> wrote in alt.atheism

Elroy Willis wrote:


Any Apache gurus around here?


I'm struggling with directory access problems here on my home network,
and have just about given up.


I run Apache 2.x here Elroy, what's up?


Hi Karl.

I'm running Apache/2.0.40 .

I've got everything working up to the point where I want to give
access to other directories on my hard drive. This is an internal
web server just for my own home use, to test out web pages and
nobody can get to it from the internet so security isn't a concern
for now. I want to grant full access to me, for whatever directories
I choose.

I access it via "http:192.168.1.102" for now.

My http root server directory is "/var/www/html" and I can access all
the individual files in that directory just fine, but beyond that,
nothing. I get permission errors when trying to access the
directories I've added to the httpd.conf file.

I added the following to httpd.conf and restarted httpd several times,
but it doesn't seem to be picking up the changes.

<Directory "/home/elroy">
AllowOverride None
order allow,deny
allow from all
Options all
</Directory>

I don't care about authentication for now, so should the above be
enough to get it working right? I want everything underneath
/home/elroy to be accessible via the web server. I've got some CGI
stuff under there, so CGI needs to be enabled as well as PHP.

I'm using mod_userdir. If that's enabled on your machine, the following
should work (of course, modify to your own tastes):
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
DirectoryIndex index.cgi index.php index.htm index.html
/cgi-bin/index.cgi
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec
</Directory>
</IfModule>
If you're not, just remove the <IfModule ...> tags and add the insides
to your apache.conf.
Turning on CGI and PHP can be a little touchy, and I can't remember
everything you have to go through, but apache's online documentation is
very helpful there, if you don't already have it.
Also, for user directories, you access them by the convention:
http://subd.domain.tld/~username
.
User: "Frank Mayhar"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 02:00:16 PM
On Tue, 04 Jul 2006 10:15:57 -0700, Chris Johnson wrote:

I'm using mod_userdir. If that's enabled on your machine, the following
should work (of course, modify to your own tastes):

<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root

<Directory /home/*/public_html>
DirectoryIndex index.cgi index.php index.htm index.html
/cgi-bin/index.cgi
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec
</Directory>
</IfModule>

If you're not, just remove the <IfModule ...> tags and add the insides
to your apache.conf.

Turning on CGI and PHP can be a little touchy, and I can't remember
everything you have to go through, but apache's online documentation is
very helpful there, if you don't already have it.

Also, for user directories, you access them by the convention:
http://subd.domain.tld/~username

Alternatively, you can use your existing configuration but just before
your <Directory> directive, add something like
Alias /home/elroy "/home/elroy"
This will make "http://<foo>/home/elroy" do the right thing.
Chris' suggestion is better, though.
--
Frank Mayhar frank@exit.com http://www.exit.com/
Exit Consulting http://www.gpsclock.com/
http://www.exit.com/blog/frank/
.


User: "Niels"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 10:26:50 AM
On Tuesday 04 July 2006 15:29, Elroy Willis wrote:
[snip technical explanation]
Does the apache user have read access to /home and /home/elroy?
What if you change documentRoot to /home/elroy ?
//Niels
.



User: "AZ Nomad"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 10:03:17 AM
On Tue, 04 Jul 2006 11:53:35 GMT, Elroy Willis <elroywillis@swbell.net> wrote:

Any Apache gurus around here?
I'm struggling with directory access problems here on my home network,
and have just about given up.

What's the problem? The files that are served have to 'belong' to the
same 'apache' user. (at least on linux)
What OS are you running apache on?
.
User: "Elroy Willis"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 05:14:29 PM
AZ Nomad <aznomad@PmunOgeBOX.com> wrote in alt.atheism

Elroy Willis <elroywillis@swbell.net> wrote:

Any Apache gurus around here?
I'm struggling with directory access problems here on my home network,
and have just about given up.

What's the problem? The files that are served have to 'belong' to the
same 'apache' user. (at least on linux)

That doesn't seem to be true. All the files in my /home/elroy
directory are owned by me. All that's necessary is that they have
read permission from what I can tell.

What OS are you running apache on?

I'm running it on a Redhat Linux box that's connected to a wireless
router. My Windows box communicates to it via a wireless card. I've
got everything working pretty well, after several headaches and
late-night head-scratching sessions.
I'm pretty sure I could open it up to the world just by setting
my router to accept incoming requests on port 80 and forwarding
them to my Linux box.
--
Elroy Willis
www.elroysemporium.com
.
User: "AZ Nomad"

Title: Re: OT - Apache Web Server Help Needed 04 Jul 2006 11:20:29 PM
On Tue, 04 Jul 2006 22:14:29 GMT, Elroy Willis <elroywillis@swbell.net> wrote:

AZ Nomad <aznomad@PmunOgeBOX.com> wrote in alt.atheism

Elroy Willis <elroywillis@swbell.net> wrote:

Any Apache gurus around here?
I'm struggling with directory access problems here on my home network,
and have just about given up.

What's the problem? The files that are served have to 'belong' to the
same 'apache' user. (at least on linux)

That doesn't seem to be true. All the files in my /home/elroy
directory are owned by me. All that's necessary is that they have
read permission from what I can tell.

What OS are you running apache on?

I'm running it on a Redhat Linux box that's connected to a wireless
router. My Windows box communicates to it via a wireless card. I've
got everything working pretty well, after several headaches and
late-night head-scratching sessions.
I'm pretty sure I could open it up to the world just by setting
my router to accept incoming requests on port 80 and forwarding
them to my Linux box.

You're correct. I've always put web pages directly in the apache directory
and set the files to be owned by the user 'apache'. As another poster
said, you cah add yourself to the apache group. Or, as you did, open up
the files to the world.
.




  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.3585     pg.2749     pg.2106     pg.1612     pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER