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] Basic question about https

2018-09-08 Thread Frank Gingras
Those two URLs point to the same vhost. You can either create directories
in the DocumentRoot for that vhost accordingly, or use simple Alias
directives.

Further, the config file where you defined your vhost isn't really
important.

On Tue, Aug 21, 2018 at 9:25 AM Mahmood Naderan
 wrote:

> Hi,
>
> It is possible to have http://sub.somewhere/portal1
>  and https://sub.somewhere/portal2
>
> For that, I have to define a document root in 000-default.conf and an
> entry for portal1 and then define an entry for portal2 in default-ssl.conf.
>
> Is that a valid configuration? Or I have to define all directories in
> either 000-default.conf (http) or default-ssl.conf (https)?
>
>
> Regards,
> Mahmood
>


[users@httpd] Basic question about https

2018-08-21 Thread Mahmood Naderan
Hi,
It is possible to have http://sub.somewhere/portal1 and 
https://sub.somewhere/portal2
For that, I have to define a document root in 000-default.conf and an entry for 
portal1 and then define an entry for portal2 in default-ssl.conf.
Is that a valid configuration? Or I have to define all directories in either 
000-default.conf (http) or default-ssl.conf (https)?


Regards,
Mahmood

Re: [users@httpd] basic question

2011-02-03 Thread Igor Galić

- "Lava Saleem"  wrote:

> Hi,
> I'm a new user for apache and I have simple questions first one is : I
> have already downloaded apache tomcat and now I need to set apache
> httpd as a proxy I have a httpd in my /etc linux box ( centos 2.6.18

That's interesting, because we haven't yet released 2.6.18

> and the apache tomcat is 7.0.4 ) but I don't see apache directory

You might want to consider to use 7.0.6, as http://tomcat.apache.org/
says: "This is the first stable release of the Tomcat 7 branch."

> beside the apache tomcat in the /opt directory, does that mean I have
> to download apache and mod_jk ?if it is not there how come I have

On this list we recommend mod_proxy_http or mod_proxy_ajp, see:
http://httpd.apache.org/docs/current/mod/mod_proxy.html
and http://www.apachetutor.org/admin/reverseproxies for a good
example on how to configure it.

(On us...@tomcat.apache.org we recommend mod_jk ;)

> httpd in /etc ? My second question is about uploading a website ( html
> embadded with java script ) into the apache how to do that ?


http://wiki.apache.org/httpd/DistrosDefaultLayout

You put it in the DocumentRoot:
http://httpd.apache.org/docs/current/mod/core.html#documentroot


> ps I have looked into the documentary but didn't find the answers
> 
> Thank you
> LS

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] basic question

2011-02-02 Thread Lava Saleem
Hi,
I'm a new user for apache and I have simple questions first one is : I have
already downloaded apache tomcat and now I need to set apache httpd as a
proxy I have a httpd in my /etc linux box ( centos 2.6.18 and the apache
tomcat is 7.0.4 ) but I don't see apache directory beside the apache tomcat
in the /opt directory, does that mean I have to download apache and mod_jk
?if it is not there how come I have httpd in /etc ? My second question is
about uploading a website ( html embadded with java script ) into the apache
how to do that ?
ps I have looked into the documentary but didn't find the answers

Thank you
LS