Re: [users@httpd] basic question ---

2023-10-16 Thread Frank Gingras
Can you keep the replies on-list?

Multiviews is just the simplest approach, and there is no such thing as
"everyone does X". It depends.

You can certainly solve a problem in the most convoluted way possible, but
it doesn't mean that it's the correct way.

On Mon, Oct 16, 2023 at 5:22 PM Tatsuki Makino 
wrote:

> Hello.
>
> Frank Gingras wrote on 2023/10/17 02:22:
> > That's just multiviews.
>
> For that matter, do everyone else do multiviews?
> What if we simply name the file b, and then do the following?
>
> 
>  
>   SetHandler php-script
>  
>  
>   # If it works via CGI as well.
>   SetHandler cgi-script
>  
> 
>
> Regards.
>
>


Re: [users@httpd] basic question ---

2023-10-16 Thread Tatsuki Makino
Hello.

Frank Gingras wrote on 2023/10/17 02:22:
> That's just multiviews.

For that matter, do everyone else do multiviews?
What if we simply name the file b, and then do the following?


 
  SetHandler php-script
 
 
  # If it works via CGI as well.
  SetHandler cgi-script
 


Regards.


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] basic question ---

2023-10-16 Thread Frank Gingras
That's just multiviews.

On Mon, Oct 16, 2023 at 12:49 PM bruce  wrote:

> Hi Frank.
>
> Thanks for the reply.
>
> Not converting.
>
> But I've seen example open source demo/apps
>  where the app/url
>http://www.foo.com/a
>http://www.foo.com/b
>  are valid...
>
> and when I inspect the dir, I get
>  a.php   - b.php...
>
> So I'm assuming that there's something happening in the  httpd.conf that's
>  "hiding"/handling the ".php" extension.
>
>
> So, trying to understand, so I can do my own personal test.
>
> thanks
>
> On Mon, Oct 16, 2023 at 12:25 PM Frank Gingras  wrote:
> >
> > You should use multviews, so that if you request /a, it will expand to
> a.php.
> >
> > Converting a.php to b.php makes no sense; why would you request another
> script in that case?
> >
> > You should also look at the FallbackResource directive, and use pathinfo
> to handle URI parameters, instead of the query string.
> >
> > On Mon, Oct 16, 2023 at 12:19 PM bruce  wrote:
> >>
> >> running apache2
> >> old copy of centos
> >>
> >> trying to understand how to test a few things.
> >>
> >> I can have
> >>  http://www.abc.com/a.php
> >>
> >> a.php can fire off a page to "b.php"
> >>
> >> I'm trying to figure out what to do in the httpd.conf file to
> >>  "ignore/hide" the .php
> >>
> >> so the displayed url would be
> >>  http://www.abc.com/b
> >> or
> >>  http://www.abc.com/b?qq=1&w=2.
> >>
> >> any pointers would be helpful!
> >>
> >> oh, the test is a subdir off the main /var/www/html/testapp <<
> >>
> >> thanks
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> >> For additional commands, e-mail: users-h...@httpd.apache.org
> >>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] basic question ---

2023-10-16 Thread bruce
Hi Frank.

Thanks for the reply.

Not converting.

But I've seen example open source demo/apps
 where the app/url
   http://www.foo.com/a
   http://www.foo.com/b
 are valid...

and when I inspect the dir, I get
 a.php   - b.php...

So I'm assuming that there's something happening in the  httpd.conf that's
 "hiding"/handling the ".php" extension.


So, trying to understand, so I can do my own personal test.

thanks

On Mon, Oct 16, 2023 at 12:25 PM Frank Gingras  wrote:
>
> You should use multviews, so that if you request /a, it will expand to a.php.
>
> Converting a.php to b.php makes no sense; why would you request another 
> script in that case?
>
> You should also look at the FallbackResource directive, and use pathinfo to 
> handle URI parameters, instead of the query string.
>
> On Mon, Oct 16, 2023 at 12:19 PM bruce  wrote:
>>
>> running apache2
>> old copy of centos
>>
>> trying to understand how to test a few things.
>>
>> I can have
>>  http://www.abc.com/a.php
>>
>> a.php can fire off a page to "b.php"
>>
>> I'm trying to figure out what to do in the httpd.conf file to
>>  "ignore/hide" the .php
>>
>> so the displayed url would be
>>  http://www.abc.com/b
>> or
>>  http://www.abc.com/b?qq=1&w=2.
>>
>> any pointers would be helpful!
>>
>> oh, the test is a subdir off the main /var/www/html/testapp <<
>>
>> thanks
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] basic question ---

2023-10-16 Thread Frank Gingras
You should use multviews, so that if you request /a, it will expand to
a.php.

Converting a.php to b.php makes no sense; why would you request another
script in that case?

You should also look at the FallbackResource directive, and use pathinfo to
handle URI parameters, instead of the query string.

On Mon, Oct 16, 2023 at 12:19 PM bruce  wrote:

> running apache2
> old copy of centos
>
> trying to understand how to test a few things.
>
> I can have
>  http://www.abc.com/a.php
>
> a.php can fire off a page to "b.php"
>
> I'm trying to figure out what to do in the httpd.conf file to
>  "ignore/hide" the .php
>
> so the displayed url would be
>  http://www.abc.com/b
> or
>  http://www.abc.com/b?qq=1&w=2.
>
> any pointers would be helpful!
>
> oh, the test is a subdir off the main /var/www/html/testapp <<
>
> thanks
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] basic question ---

2023-10-16 Thread bruce
running apache2
old copy of centos

trying to understand how to test a few things.

I can have
 http://www.abc.com/a.php

a.php can fire off a page to "b.php"

I'm trying to figure out what to do in the httpd.conf file to
 "ignore/hide" the .php

so the displayed url would be
 http://www.abc.com/b
or
 http://www.abc.com/b?qq=1&w=2.

any pointers would be helpful!

oh, the test is a subdir off the main /var/www/html/testapp <<

thanks

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] preciso de ajuda

2023-10-16 Thread Frank Gingras
I'll answer in English for the benefit of the list (you can use google
translate).

For windows, the recommended installers are from the apache lounge site:

https://www.apachelounge.com/

Alternatively, you can install xampp, but that should not be run in
production.

On Sun, Oct 15, 2023 at 6:17 PM Endel Naiva 
wrote:

> preciso saber como RODAR CORRETAMENTE : INSTALAR , CONFIGURAR E SUBIR o
> Apache 2.4 ou a mais nova versão em meu computador
> com o WINDOWS 10 PRO
>
> Endel
>