You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Darryl Cook <dl...@cs.appstate.edu> on 2003/01/16 21:21:17 UTC

[users@httpd] Directory Listings

I need to stop directory listings on certain directories only.  Im 
running apache 1.3.27 on Tru64 4.0f.  

I have the following in the httpd.conf file and would think that 
-Indexes would prevent that in the last directory section but it doesnt. 
 I did restart apache after putting in the last section.  I checked the 
.htaccess file to see if it was turned on there and it isnt, in fact 
there isnt a .htaccess in that directory.  Im sure Im missing something 
and am hoping some kind soul will point it out to me. The root directory 
is /usr/local/etc/httpd/htdocs.  

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Options +Includes +Indexes
    XBitHack on
 </Directory>
 
 <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
  Options FollowSymLinks
  AllowOverride All
  Options +Includes -Indexes
  XBitHack on
 </Directory>

thanks for the help,

darryl


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Gary Turner <kk...@sbcglobal.net>.
Thomas Moore wrote:

>
>I want to log banner ads in my mySQL database (which I am doing now), and
>then have the link jump to the customers web site (which I am doing now
>using META HTTP refresh).
>
>The problem is we want the customer to see that his link was clicked on by
>our web server and it seems like using the META refresh puts the log data
>into "no referer" for his web logs instead of our domain name.

No PHP here, so a Perl example.

===============================

#!/usr/bin/perl -wT

use strict;

# The idea here is to let the browser go to a new url while a record
# is made of the click through.

my $path = $ENV{QUERY_STRING};
print "Location: $path\n\n";

====================================

This causes the browser to go to the address in $path.  Some older
browsers may not support "Location".  For that, you could also return a
page with a normal <a href>.

and, sample html

====================================

<html> <head>
<title>redirection test</title>
</head>

<body>
<h1>Let's Track a Click-Thru</h1>

<a href="cgi/go.pl?http://debian.org/">Debian</a>
<br>

<a href="cgi/go.pl?http://netscape.com/">netscape</a>
<br>

<hr>

==================================

Your access log will have the clicked-through site in the GET string.
At the same time, your customer will see a referer from the client.  How
you parse the logs is another exercise.  This should provide enough for
billing and the customer can compare to his access and referer logs if
he wishes.  If his logs show you as referer, might he suspect you of
running up the count?
--
gt                  kk5st@sbcglobal.net
 If someone tells you---
 "I have a sense of humor, but that's not funny." 
                                  ---they don't.

---------------------------------------------------------------------
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] Directory Listings

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 17 Jan 2003, Darryl Cook wrote:
>  <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>   Options -Indexes
>  </Directory>
>
> htdocs directory looks like this:
> directory          u
> link                   khj   ./cs/khj
> directory           cs

(That's not very clear... I'm just guessing below on the actual
structure.)

And what URL are you using?  If you are accessing
http://yourhost.example.com/u/khj
then you need to use
<Directory /usr/local/etc/httpd/htdocs/u/khj>

To make this clear, I suggest getting rid of the symlink and using an
Apache Alias directive.  This eliminates much confusion.

Joshua.

---------------------------------------------------------------------
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] Directory Listings

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 17 Jan 2003, Kenny G. Dubuisson, Jr. wrote:

> When you say you restarted the server, did you "stop" it then "start" it or
> "restart" it?  Apache doesn't read the new config file if you do a
> "restart".  You must "stop" it then "start" it to read the new config.

Not true.  A "restart" or a "gracefule restart" will reread the config
file.

Joshua.

---------------------------------------------------------------------
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] Directory Listings

Posted by Darryl Cook <dl...@cs.appstate.edu>.
nope didnt change anything....hmmm something dumb Im overlooking Im sure.
darryl

Darryl Cook wrote:

> That could well be the problem.....i did a kill -HUP most of the time 
> but once did restart it.  Maybe the kill -HUP doesnt reread either as 
> it basically is a restart.
>
> thanks, Ill give that a shot.
> darryl
>
> Kenny G. Dubuisson, Jr. wrote:
>
>>When you say you restarted the server, did you "stop" it then "start" it or
>>"restart" it?  Apache doesn't read the new config file if you do a
>>"restart".  You must "stop" it then "start" it to read the new config.
>>Kenny
>>
>>----- Original Message -----
>>From: "Darryl Cook" <dl...@cs.appstate.edu>
>>To: <us...@httpd.apache.org>
>>Sent: Friday, January 17, 2003 1:20 PM
>>Subject: Re: [users@httpd] Directory Listings
>>
>>
>>  
>>
>>>welll...... I changed it to the following:
>>>
>>><Directory />
>>>    Options FollowSymLinks Includes Indexes
>>>    AllowOverride All
>>>    XBitHack on
>>> </Directory>
>>>
>>> <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>>>  Options -Indexes
>>> </Directory>
>>>
>>>and it still doesnt work.....I did restart the server as well.  If I
>>>take Indexes out of the Directory / section then it doesnt allow them to
>>>view directory listings.  There is a symbolic link in the htdocs
>>>directory but Ive tried it using every possible combination with the
>>>same results.   I dont see any other Directory commands in the
>>>httpd.conf file except these two and no Location commands.
>>>
>>>dont really see anything wrong at this point....
>>>
>>>htdocs directory looks like this:
>>>directory          u
>>>link                   khj   ./cs/khj
>>>directory           cs
>>>
>>>darryl
>>>Joshua Slive wrote:
>>>
>>>    
>>>
>>>>On Thu, 16 Jan 2003, Darryl Cook wrote:
>>>>
>>>>
>>>>      
>>>>
>>>>><Directory />
>>>>>   Options FollowSymLinks
>>>>>   AllowOverride All
>>>>>   Options +Includes +Indexes
>>>>>   XBitHack on
>>>>></Directory>
>>>>>
>>>>><Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>>>>> Options FollowSymLinks
>>>>> AllowOverride All
>>>>> Options +Includes -Indexes
>>>>> XBitHack on
>>>>></Directory>
>>>>>
>>>>>
>>>>>        
>>>>>
>>>>Start by reading the docs for Options, with special attention to the
>>>>effect of "+" and "-" options.  What you have makes no sense.
>>>>http://httpd.apache.org/docs-2.0/mod/core.html#options
>>>>
>>>>Probably what you want is
>>>>
>>>><Directory />
>>>>Options FollowSymLinks Includes Indexes
>>>></Directory>
>>>>
>>>><Directory  /usr/local/etc/httpd/htdocs/u/cs/khj>
>>>>Options -Indexes
>>>></Directory>
>>>>
>>>>But that doesn't appear to be the main problem.  So, some other things to
>>>>check:
>>>>
>>>>1. Are you ABSOLUTELY SURE that you are pointing to the right directory,
>>>>and there are no symlinks or other funky things going on?
>>>>
>>>>2. Are you sure you don't have any <Location> sections or later
>>>><Directory> sections overriding this configuration with another Options
>>>>directive?
>>>>
>>>>3. Have you restarted the server after making changes?
>>>>
>>>>Joshua.
>>>>
>>>>---------------------------------------------------------------------
>>>>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
>>>
>>>    
>>>
>>
>>
>>---------------------------------------------------------------------
>>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] Directory Listings

Posted by Darryl Cook <dl...@cs.appstate.edu>.
That could well be the problem.....i did a kill -HUP most of the time 
but once did restart it.  Maybe the kill -HUP doesnt reread either as it 
basically is a restart.

thanks, Ill give that a shot.
darryl

Kenny G. Dubuisson, Jr. wrote:

>When you say you restarted the server, did you "stop" it then "start" it or
>"restart" it?  Apache doesn't read the new config file if you do a
>"restart".  You must "stop" it then "start" it to read the new config.
>Kenny
>
>----- Original Message -----
>From: "Darryl Cook" <dl...@cs.appstate.edu>
>To: <us...@httpd.apache.org>
>Sent: Friday, January 17, 2003 1:20 PM
>Subject: Re: [users@httpd] Directory Listings
>
>
>  
>
>>welll...... I changed it to the following:
>>
>><Directory />
>>    Options FollowSymLinks Includes Indexes
>>    AllowOverride All
>>    XBitHack on
>> </Directory>
>>
>> <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>>  Options -Indexes
>> </Directory>
>>
>>and it still doesnt work.....I did restart the server as well.  If I
>>take Indexes out of the Directory / section then it doesnt allow them to
>>view directory listings.  There is a symbolic link in the htdocs
>>directory but Ive tried it using every possible combination with the
>>same results.   I dont see any other Directory commands in the
>>httpd.conf file except these two and no Location commands.
>>
>>dont really see anything wrong at this point....
>>
>>htdocs directory looks like this:
>>directory          u
>>link                   khj   ./cs/khj
>>directory           cs
>>
>>darryl
>>Joshua Slive wrote:
>>
>>    
>>
>>>On Thu, 16 Jan 2003, Darryl Cook wrote:
>>>
>>>
>>>      
>>>
>>>><Directory />
>>>>   Options FollowSymLinks
>>>>   AllowOverride All
>>>>   Options +Includes +Indexes
>>>>   XBitHack on
>>>></Directory>
>>>>
>>>><Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>>>> Options FollowSymLinks
>>>> AllowOverride All
>>>> Options +Includes -Indexes
>>>> XBitHack on
>>>></Directory>
>>>>
>>>>
>>>>        
>>>>
>>>Start by reading the docs for Options, with special attention to the
>>>effect of "+" and "-" options.  What you have makes no sense.
>>>http://httpd.apache.org/docs-2.0/mod/core.html#options
>>>
>>>Probably what you want is
>>>
>>><Directory />
>>>Options FollowSymLinks Includes Indexes
>>></Directory>
>>>
>>><Directory  /usr/local/etc/httpd/htdocs/u/cs/khj>
>>>Options -Indexes
>>></Directory>
>>>
>>>But that doesn't appear to be the main problem.  So, some other things to
>>>check:
>>>
>>>1. Are you ABSOLUTELY SURE that you are pointing to the right directory,
>>>and there are no symlinks or other funky things going on?
>>>
>>>2. Are you sure you don't have any <Location> sections or later
>>><Directory> sections overriding this configuration with another Options
>>>directive?
>>>
>>>3. Have you restarted the server after making changes?
>>>
>>>Joshua.
>>>
>>>---------------------------------------------------------------------
>>>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
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>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] Directory Listings

Posted by "Kenny G. Dubuisson, Jr." <kd...@kcmria.com>.
When you say you restarted the server, did you "stop" it then "start" it or
"restart" it?  Apache doesn't read the new config file if you do a
"restart".  You must "stop" it then "start" it to read the new config.
Kenny

----- Original Message -----
From: "Darryl Cook" <dl...@cs.appstate.edu>
To: <us...@httpd.apache.org>
Sent: Friday, January 17, 2003 1:20 PM
Subject: Re: [users@httpd] Directory Listings


> welll...... I changed it to the following:
>
> <Directory />
>     Options FollowSymLinks Includes Indexes
>     AllowOverride All
>     XBitHack on
>  </Directory>
>
>  <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>   Options -Indexes
>  </Directory>
>
> and it still doesnt work.....I did restart the server as well.  If I
> take Indexes out of the Directory / section then it doesnt allow them to
> view directory listings.  There is a symbolic link in the htdocs
> directory but Ive tried it using every possible combination with the
> same results.   I dont see any other Directory commands in the
> httpd.conf file except these two and no Location commands.
>
> dont really see anything wrong at this point....
>
> htdocs directory looks like this:
> directory          u
> link                   khj   ./cs/khj
> directory           cs
>
> darryl
> Joshua Slive wrote:
>
> >On Thu, 16 Jan 2003, Darryl Cook wrote:
> >
> >
> >><Directory />
> >>    Options FollowSymLinks
> >>    AllowOverride All
> >>    Options +Includes +Indexes
> >>    XBitHack on
> >> </Directory>
> >>
> >> <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
> >>  Options FollowSymLinks
> >>  AllowOverride All
> >>  Options +Includes -Indexes
> >>  XBitHack on
> >> </Directory>
> >>
> >>
> >
> >Start by reading the docs for Options, with special attention to the
> >effect of "+" and "-" options.  What you have makes no sense.
> >http://httpd.apache.org/docs-2.0/mod/core.html#options
> >
> >Probably what you want is
> >
> ><Directory />
> >Options FollowSymLinks Includes Indexes
> ></Directory>
> >
> ><Directory  /usr/local/etc/httpd/htdocs/u/cs/khj>
> >Options -Indexes
> ></Directory>
> >
> >But that doesn't appear to be the main problem.  So, some other things to
> >check:
> >
> >1. Are you ABSOLUTELY SURE that you are pointing to the right directory,
> >and there are no symlinks or other funky things going on?
> >
> >2. Are you sure you don't have any <Location> sections or later
> ><Directory> sections overriding this configuration with another Options
> >directive?
> >
> >3. Have you restarted the server after making changes?
> >
> >Joshua.
> >
> >---------------------------------------------------------------------
> >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
>


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Nelson Goforth <ng...@earthnet.net>.
Jurgen -

  I see your point - I've never looked at the access files to see (I 
actually can't on my ISP).

Since most of the people listed in that online Guide won't be able to 
see their logs either, what I do is send an e-mail (assuming that a 
listing with a web address also has an e-mail address) that says - 
"hey! someone just looked at your site" (for the most part this is so 
people know that listing in the Guide is actually working for them).  I 
can send the IP address of the REMOTE_HOST (and I guess I could do a 
lookup to get the domain name), but that seemed to confuse the 
customers, so I took it away.  I do, however write that to the special 
log.

I did find something on Apache if its running mod_perl that bears on 
the subject:
     http://sedition.com/perl/mod_perl.html

Nelson


On Friday, January 17, 2003, at 01:59  PM, Jurgen wrote:

> Hi,
>
> if your advertisers should see your domain name or IP in their log 
> file, when a request for a banner is made, then your server will have 
> to be the one connection to their site. Redirecting doesn't work, 
> because that will result in the visitor's browser being the one 
> connecting to the advertisers page.
> It should be done with a Perl script, I don't know any easy way to do 
> that with apache.
>
> I guess Nelson doesn't understand your question yet, but maybe now.
>
> Jurgen
>


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

if your advertisers should see your domain name or IP in their log file, when a request for a banner is made, then your server will have to be the one connection to their site. Redirecting doesn't work, because that will result in the visitor's browser being the one connecting to the advertisers page.
It should be done with a Perl script, I don't know any easy way to do that with apache.

I guess Nelson doesn't understand your question yet, but maybe now.

Jurgen


On Fri, 17 Jan 2003 12:33:51 -0800
"Thomas Moore" <tj...@digitalperformance.com> wrote:

> To be honest, I do not understand either of your answers.
> 
> How would you redirect a dynamic url in apache then from a perl or php
> script?
> 
> I want to LOG in my database and have the logs of our advertisers SHOW our
> domain name. I can't do that using HTTP- refresh. How else can I do this?
> 
> And this is an apache question since it is dealing with Apache Logging....
> 
> thanks,
> 
> -----Original Message-----
> From: Jurgen [mailto:apache@squarehosting.com]
> Sent: Friday, January 17, 2003 12:30 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] logging banner ads in customer's apache logs
> 
> 
> Hi,
> 
> I don't think you understand his answer.
> 
> There will be no web page and no link on it. It will redirect automatically
> without any link or anything displayed at all.
> Type "yahoo.com" into your browser window. You will be redirected to
> www.yahoo.com without any refresh nonsense and no link to click.
> 
> And if you ask "How would I automatically redirect ..." then the solution is
> exactly what Nelson suggested.
> If you try to do it from within apache you will have to find a way to get
> the logging into the database.
> 
> Jurgen
> 
> 
> On Fri, 17 Jan 2003 12:10:12 -0800
> "Thomas Moore" <tj...@digitalperformance.com> wrote:
> 
> > I do not think you understood my question.
> >
> > How would I automatically redirect our customers to the banner
> advertiser's
> > web sites without using Meta Refresh and logging it in the apache logs for
> > the banner advertiser.
> >
> > If I do what you say below, I just have text on a page with a link to our
> > banner advertiser. That does not solve the problem. We need the link to
> > automatically be "clicked" so the user goes to the advertiser's site and
> we
> > can log the data in mySQL.
> >
> > thanks,
> >
> > -----Original Message-----
> > From: Nelson Goforth [mailto:ngoforth@earthnet.net]
> > Sent: Friday, January 17, 2003 11:50 AM
> > To: users@httpd.apache.org
> > Subject: Re: [users@httpd] logging banner ads in customer's apache logs
> >
> >
> > This isn't an Apache question, but what I do is have the link point to
> > a script "redirectURL.pl"
> >
> > This script does several things, but the part you're interested in goes:
> >
> > sub redirect{
> > 	print "Location:$input{rd}\n\n";
> > }
> >
> > $input{rd} is the URL - it's that simple!
> >
> > Nelson
> >
> >
> > On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:
> >
> > > I want to log banner ads in my mySQL database (which I am doing now),
> > > and
> > > then have the link jump to the customers web site (which I am doing now
> > > using META HTTP refresh).
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Thomas Moore <tj...@digitalperformance.com>.
To be honest, I do not understand either of your answers.

How would you redirect a dynamic url in apache then from a perl or php
script?

I want to LOG in my database and have the logs of our advertisers SHOW our
domain name. I can't do that using HTTP- refresh. How else can I do this?

And this is an apache question since it is dealing with Apache Logging....

thanks,

-----Original Message-----
From: Jurgen [mailto:apache@squarehosting.com]
Sent: Friday, January 17, 2003 12:30 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] logging banner ads in customer's apache logs


Hi,

I don't think you understand his answer.

There will be no web page and no link on it. It will redirect automatically
without any link or anything displayed at all.
Type "yahoo.com" into your browser window. You will be redirected to
www.yahoo.com without any refresh nonsense and no link to click.

And if you ask "How would I automatically redirect ..." then the solution is
exactly what Nelson suggested.
If you try to do it from within apache you will have to find a way to get
the logging into the database.

Jurgen


On Fri, 17 Jan 2003 12:10:12 -0800
"Thomas Moore" <tj...@digitalperformance.com> wrote:

> I do not think you understood my question.
>
> How would I automatically redirect our customers to the banner
advertiser's
> web sites without using Meta Refresh and logging it in the apache logs for
> the banner advertiser.
>
> If I do what you say below, I just have text on a page with a link to our
> banner advertiser. That does not solve the problem. We need the link to
> automatically be "clicked" so the user goes to the advertiser's site and
we
> can log the data in mySQL.
>
> thanks,
>
> -----Original Message-----
> From: Nelson Goforth [mailto:ngoforth@earthnet.net]
> Sent: Friday, January 17, 2003 11:50 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] logging banner ads in customer's apache logs
>
>
> This isn't an Apache question, but what I do is have the link point to
> a script "redirectURL.pl"
>
> This script does several things, but the part you're interested in goes:
>
> sub redirect{
> 	print "Location:$input{rd}\n\n";
> }
>
> $input{rd} is the URL - it's that simple!
>
> Nelson
>
>
> On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:
>
> > I want to log banner ads in my mySQL database (which I am doing now),
> > and
> > then have the link jump to the customers web site (which I am doing now
> > using META HTTP refresh).
>
>
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

I don't think you understand his answer.

There will be no web page and no link on it. It will redirect automatically without any link or anything displayed at all.
Type "yahoo.com" into your browser window. You will be redirected to www.yahoo.com without any refresh nonsense and no link to click.

And if you ask "How would I automatically redirect ..." then the solution is exactly what Nelson suggested.
If you try to do it from within apache you will have to find a way to get the logging into the database.

Jurgen


On Fri, 17 Jan 2003 12:10:12 -0800
"Thomas Moore" <tj...@digitalperformance.com> wrote:

> I do not think you understood my question.
> 
> How would I automatically redirect our customers to the banner advertiser's
> web sites without using Meta Refresh and logging it in the apache logs for
> the banner advertiser.
> 
> If I do what you say below, I just have text on a page with a link to our
> banner advertiser. That does not solve the problem. We need the link to
> automatically be "clicked" so the user goes to the advertiser's site and we
> can log the data in mySQL.
> 
> thanks,
> 
> -----Original Message-----
> From: Nelson Goforth [mailto:ngoforth@earthnet.net]
> Sent: Friday, January 17, 2003 11:50 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] logging banner ads in customer's apache logs
> 
> 
> This isn't an Apache question, but what I do is have the link point to
> a script "redirectURL.pl"
> 
> This script does several things, but the part you're interested in goes:
> 
> sub redirect{
> 	print "Location:$input{rd}\n\n";
> }
> 
> $input{rd} is the URL - it's that simple!
> 
> Nelson
> 
> 
> On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:
> 
> > I want to log banner ads in my mySQL database (which I am doing now),
> > and
> > then have the link jump to the customers web site (which I am doing now
> > using META HTTP refresh).
> 
> 
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

what the "Location" header does is to tell the browser to go to another URL.
The connection to this other URL will be made by the browser, so the IP will be the visitor's IP or host name. There will not be a connection from your server to the advertiser's server, which means they will not have a connection from your server in their log files.
I don't know if this is what you want. Your script can log this request into a database though.

So this way you display a banner URL on your web site, which calls the script running on your own server. This script will enter a log entry in the database and redirect to the advertisers page. This will not make a difference on the display in the browser window.

Jurgen


On Fri, 17 Jan 2003 14:07:55 -0700
Nelson Goforth <ng...@earthnet.net> wrote:

> It really is just that line --- print "Location:$input{rd}\n\n";
> 
> If I remember correctly (it's been several years since I wrote this 
> script) this line has to come before ANY other headers or anything are 
> sent (which is probably why you're actually seeing this written on a 
> page), so this command must come ahead of any sort of &PrintHeader or 
> anything like that.  Also - the two linefeeds MUST be there.
> 
> A couple of URLS on topic (search google on "perl redirect location"):
>    http://sedition.com/perl/mod_perl.html  -- if you're running Apache 
> with mod_perl
>    http://www.perl.org.il/pipermail/perl/2002-July/000229.html  -- 
> someone who won't put in the linefeeds!
> 
> Nelson
> 
> On Friday, January 17, 2003, at 01:47  PM, Thomas Moore wrote:
> 
> > What causes the url to get redirected?
> >
> 
> 
> ---------------------------------------------------------------------
> 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] logging banner ads in customer's apache logs

Posted by Nelson Goforth <ng...@earthnet.net>.
It really is just that line --- print "Location:$input{rd}\n\n";

If I remember correctly (it's been several years since I wrote this 
script) this line has to come before ANY other headers or anything are 
sent (which is probably why you're actually seeing this written on a 
page), so this command must come ahead of any sort of &PrintHeader or 
anything like that.  Also - the two linefeeds MUST be there.

A couple of URLS on topic (search google on "perl redirect location"):
   http://sedition.com/perl/mod_perl.html  -- if you're running Apache 
with mod_perl
   http://www.perl.org.il/pipermail/perl/2002-July/000229.html  -- 
someone who won't put in the linefeeds!

Nelson

On Friday, January 17, 2003, at 01:47  PM, Thomas Moore wrote:

> What causes the url to get redirected?
>


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Thomas Moore <tj...@digitalperformance.com>.
What causes the url to get redirected?

-----Original Message-----
From: Nelson Goforth [mailto:ngoforth@earthnet.net]
Sent: Friday, January 17, 2003 12:42 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] logging banner ads in customer's apache logs


That's what my script does: seamlessly goes to client site.

For an example, go to:

    http://www.cprgonline.com/cgi-bin/directory.pl?searchkeys=3220

and click on the link under my name.  My resume page will open in a new 
window and a line is written to a special logfile (I don't write to 
MySQL in this iteration of the project).

Nelson Goforth


On Friday, January 17, 2003, at 01:10  PM, Thomas Moore wrote:

> I do not think you understood my question.
>
> How would I automatically redirect our customers to the banner 
> advertiser's
> web sites without using Meta Refresh and logging it in the apache logs 
> for
> the banner advertiser.
>
> If I do what you say below, I just have text on a page with a link to 
> our
> banner advertiser. That does not solve the problem. We need the link to
> automatically be "clicked" so the user goes to the advertiser's site 
> and we
> can log the data in mySQL.
>
> thanks,
>
> -----Original Message-----
> From: Nelson Goforth [mailto:ngoforth@earthnet.net]
> Sent: Friday, January 17, 2003 11:50 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] logging banner ads in customer's apache logs
>
>
> This isn't an Apache question, but what I do is have the link point to
> a script "redirectURL.pl"
>
> This script does several things, but the part you're interested in 
> goes:
>
> sub redirect{
> 	print "Location:$input{rd}\n\n";
> }
>
> $input{rd} is the URL - it's that simple!
>
> Nelson
>
>
> On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:
>
>> I want to log banner ads in my mySQL database (which I am doing now),
>> and
>> then have the link jump to the customers web site (which I am doing 
>> now
>> using META HTTP refresh).
>
>
> ---------------------------------------------------------------------
> 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
>
>

          _________________________________________________
          Nelson GOFORTH 				Lighting for Moving Pictures
          +1.303.322.5042 				http://www.earthnet.net/~ngoforth/film


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Nelson Goforth <ng...@earthnet.net>.
That's what my script does: seamlessly goes to client site.

For an example, go to:

    http://www.cprgonline.com/cgi-bin/directory.pl?searchkeys=3220

and click on the link under my name.  My resume page will open in a new 
window and a line is written to a special logfile (I don't write to 
MySQL in this iteration of the project).

Nelson Goforth


On Friday, January 17, 2003, at 01:10  PM, Thomas Moore wrote:

> I do not think you understood my question.
>
> How would I automatically redirect our customers to the banner 
> advertiser's
> web sites without using Meta Refresh and logging it in the apache logs 
> for
> the banner advertiser.
>
> If I do what you say below, I just have text on a page with a link to 
> our
> banner advertiser. That does not solve the problem. We need the link to
> automatically be "clicked" so the user goes to the advertiser's site 
> and we
> can log the data in mySQL.
>
> thanks,
>
> -----Original Message-----
> From: Nelson Goforth [mailto:ngoforth@earthnet.net]
> Sent: Friday, January 17, 2003 11:50 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] logging banner ads in customer's apache logs
>
>
> This isn't an Apache question, but what I do is have the link point to
> a script "redirectURL.pl"
>
> This script does several things, but the part you're interested in 
> goes:
>
> sub redirect{
> 	print "Location:$input{rd}\n\n";
> }
>
> $input{rd} is the URL - it's that simple!
>
> Nelson
>
>
> On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:
>
>> I want to log banner ads in my mySQL database (which I am doing now),
>> and
>> then have the link jump to the customers web site (which I am doing 
>> now
>> using META HTTP refresh).
>
>
> ---------------------------------------------------------------------
> 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
>
>

          _________________________________________________
          Nelson GOFORTH 				Lighting for Moving Pictures
          +1.303.322.5042 				http://www.earthnet.net/~ngoforth/film


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Thomas Moore <tj...@digitalperformance.com>.
I do not think you understood my question.

How would I automatically redirect our customers to the banner advertiser's
web sites without using Meta Refresh and logging it in the apache logs for
the banner advertiser.

If I do what you say below, I just have text on a page with a link to our
banner advertiser. That does not solve the problem. We need the link to
automatically be "clicked" so the user goes to the advertiser's site and we
can log the data in mySQL.

thanks,

-----Original Message-----
From: Nelson Goforth [mailto:ngoforth@earthnet.net]
Sent: Friday, January 17, 2003 11:50 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] logging banner ads in customer's apache logs


This isn't an Apache question, but what I do is have the link point to
a script "redirectURL.pl"

This script does several things, but the part you're interested in goes:

sub redirect{
	print "Location:$input{rd}\n\n";
}

$input{rd} is the URL - it's that simple!

Nelson


On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:

> I want to log banner ads in my mySQL database (which I am doing now),
> and
> then have the link jump to the customers web site (which I am doing now
> using META HTTP refresh).


---------------------------------------------------------------------
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] logging banner ads in customer's apache logs

Posted by Nelson Goforth <ng...@earthnet.net>.
This isn't an Apache question, but what I do is have the link point to 
a script "redirectURL.pl"

This script does several things, but the part you're interested in goes:

sub redirect{
	print "Location:$input{rd}\n\n";
}

$input{rd} is the URL - it's that simple!

Nelson


On Friday, January 17, 2003, at 12:33  PM, Thomas Moore wrote:

> I want to log banner ads in my mySQL database (which I am doing now), 
> and
> then have the link jump to the customers web site (which I am doing now
> using META HTTP refresh).


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


[users@httpd] logging banner ads in customer's apache logs

Posted by Thomas Moore <tj...@digitalperformance.com>.
I want to log banner ads in my mySQL database (which I am doing now), and
then have the link jump to the customers web site (which I am doing now
using META HTTP refresh).

The problem is we want the customer to see that his link was clicked on by
our web server and it seems like using the META refresh puts the log data
into "no referer" for his web logs instead of our domain name.

I've looked quite a bit and can not find any good answers. Any help would be
appreciated.

Here is the PHP code/mySQL code I use to log the hits and the html code to
redirect the customer to the banner advertiser's web site...

$query1 ="insert into URL_LOG (number_of_hits, log_date, company_id, url,
ban_or_reg, category_id, mcategory_id)";
$query1 .=" values ($number_of_hits, NOW(), $compid, '$url', '$banner',
$catid, $mcatid)";
$result1 = mysql_query($query1) or die("Query failed - $query1");

print "<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=http://$url\">";
?>
Click here if this screen does not refresh...
<a href="http://<?=$url?>"><?=$url?></a>
<?


---------------------------------------------------------------------
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] Directory Listings

Posted by Darryl Cook <dl...@cs.appstate.edu>.
welll...... I changed it to the following:

<Directory />
    Options FollowSymLinks Includes Indexes
    AllowOverride All
    XBitHack on
 </Directory>

 <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
  Options -Indexes
 </Directory>

and it still doesnt work.....I did restart the server as well.  If I 
take Indexes out of the Directory / section then it doesnt allow them to 
view directory listings.  There is a symbolic link in the htdocs 
directory but Ive tried it using every possible combination with the 
same results.   I dont see any other Directory commands in the 
httpd.conf file except these two and no Location commands.

dont really see anything wrong at this point....

htdocs directory looks like this:
directory          u
link                   khj   ./cs/khj
directory           cs

darryl
Joshua Slive wrote:

>On Thu, 16 Jan 2003, Darryl Cook wrote:
>  
>
>><Directory />
>>    Options FollowSymLinks
>>    AllowOverride All
>>    Options +Includes +Indexes
>>    XBitHack on
>> </Directory>
>>
>> <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>>  Options FollowSymLinks
>>  AllowOverride All
>>  Options +Includes -Indexes
>>  XBitHack on
>> </Directory>
>>    
>>
>
>Start by reading the docs for Options, with special attention to the
>effect of "+" and "-" options.  What you have makes no sense.
>http://httpd.apache.org/docs-2.0/mod/core.html#options
>
>Probably what you want is
>
><Directory />
>Options FollowSymLinks Includes Indexes
></Directory>
>
><Directory  /usr/local/etc/httpd/htdocs/u/cs/khj>
>Options -Indexes
></Directory>
>
>But that doesn't appear to be the main problem.  So, some other things to
>check:
>
>1. Are you ABSOLUTELY SURE that you are pointing to the right directory,
>and there are no symlinks or other funky things going on?
>
>2. Are you sure you don't have any <Location> sections or later
><Directory> sections overriding this configuration with another Options
>directive?
>
>3. Have you restarted the server after making changes?
>
>Joshua.
>
>---------------------------------------------------------------------
>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] Directory Listings

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 16 Jan 2003, Darryl Cook wrote:
> <Directory />
>     Options FollowSymLinks
>     AllowOverride All
>     Options +Includes +Indexes
>     XBitHack on
>  </Directory>
>
>  <Directory /usr/local/etc/httpd/htdocs/u/cs/khj>
>   Options FollowSymLinks
>   AllowOverride All
>   Options +Includes -Indexes
>   XBitHack on
>  </Directory>

Start by reading the docs for Options, with special attention to the
effect of "+" and "-" options.  What you have makes no sense.
http://httpd.apache.org/docs-2.0/mod/core.html#options

Probably what you want is

<Directory />
Options FollowSymLinks Includes Indexes
</Directory>

<Directory  /usr/local/etc/httpd/htdocs/u/cs/khj>
Options -Indexes
</Directory>

But that doesn't appear to be the main problem.  So, some other things to
check:

1. Are you ABSOLUTELY SURE that you are pointing to the right directory,
and there are no symlinks or other funky things going on?

2. Are you sure you don't have any <Location> sections or later
<Directory> sections overriding this configuration with another Options
directive?

3. Have you restarted the server after making changes?

Joshua.

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