Alias or direct within httpd.conf for multiple vhosts?

Alias or direct within httpd.conf for multiple vhosts?

am 08.06.2007 20:31:40 von jamie

I host several several dozen websites with Awstats as a log analysis
tool. To access stats, a person visits http://www.example.com/cgi-bin/awstats.pl.
How do I modify httpd.conf to allow a person to instead just use
http://www.example.com/webstats? I don't want to have to use a
seperate .htaccess for each site, if at all possible. Thanks!

Re: Alias or direct within httpd.conf for multiple vhosts?

am 08.06.2007 21:13:34 von kwan

On Jun 8, 11:31 am, Jamie wrote:
> I host several several dozen websites with Awstats as a log analysis
> tool. To access stats, a person visitshttp://www.example.com/cgi-bin/awstats.pl.
> How do I modify httpd.conf to allow a person to instead just usehttp://www.example.com/webstats?I don't want to have to use a
> seperate .htaccess for each site, if at all possible. Thanks!
DirectoryIndex webstats.pl

Re: Alias or direct within httpd.conf for multiple vhosts?

am 08.06.2007 21:19:13 von jamie

On Jun 8, 3:13 pm, kwan wrote:
> On Jun 8, 11:31 am, Jamie wrote:> I host several several dozen websites with Awstats as a log analysis
> > tool. To access stats, a person visitshttp://www.example.com/cgi-bin/awstats.pl.
> > How do I modify httpd.conf to allow a person to instead just usehttp://www.example.com/webstats?Idon't want to have to use a
> > seperate .htaccess for each site, if at all possible. Thanks!
>
> DirectoryIndex webstats.pl

Thanks for the reply, but I think you misunderstood my problem. I need
a person redirected to http://www.example.com/cgi-bin/awstats.pl when
they enter http://www.example.com/webstats.

Re: Alias or direct within httpd.conf for multiple vhosts?

am 08.06.2007 22:43:11 von mark

Jamie wrote in
news:1181330353.884956.8440@p77g2000hsh.googlegroups.com:

> On Jun 8, 3:13 pm, kwan wrote:
>> On Jun 8, 11:31 am, Jamie wrote:> I host several
>> several dozen websites with Awstats as a log analysis
>> > tool. To access stats, a person
>> > visitshttp://www.example.com/cgi-bin/awstats.pl. How do I modify
>> > httpd.conf to allow a person to instead just
>> > usehttp://www.example.com/webstats?Idon't want to have to use a
>> > seperate .htaccess for each site, if at all possible. Thanks!
>>
>> DirectoryIndex webstats.pl
>
> Thanks for the reply, but I think you misunderstood my problem. I need
> a person redirected to http://www.example.com/cgi-bin/awstats.pl when
> they enter http://www.example.com/webstats.
>
>

Try this...

Alias /webstats /cgi-bin/awstats.pl


--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: Alias or direct within httpd.conf for multiple vhosts?

am 09.06.2007 03:04:59 von kwan

On Jun 8, 1:43 pm, Mark wrote:
> Jamie wrote innews:1181330353.884956.8440@p77g2000hsh.googlegroups.com:
>
>
>
>
>
> > On Jun 8, 3:13 pm, kwan wrote:
> >> On Jun 8, 11:31 am, Jamie wrote:> I host several
> >> several dozen websites with Awstats as a log analysis
> >> > tool. To access stats, a person
> >> > visitshttp://www.example.com/cgi-bin/awstats.pl. How do I modify
> >> > httpd.conf to allow a person to instead just
> >> > usehttp://www.example.com/webstats?Idon'twant to have to use a
> >> > seperate .htaccess for each site, if at all possible. Thanks!
>
> >> DirectoryIndex webstats.pl
>
> > Thanks for the reply, but I think you misunderstood my problem. I need
> > a person redirected tohttp://www.example.com/cgi-bin/awstats.plwhen
> > they enterhttp://www.example.com/webstats.
>
> Try this...
>
> Alias /webstats /cgi-bin/awstats.pl
>
> --
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> - Show quoted text -

You may want to use redirect
google more about redirect