Page 1 of 1

Secure URL

Posted: Tue Sep 06, 2005 4:13 am
by namitjung
hi all,

I am seeing this type of url very frequently.

https://www.somthing/one/cgi-bin/webscr ... le-address

Here no one will know which server side scripting is used for this.

Now i want to use my php code (while posting my forms) in that way. How can i do it? I mean just passing variables and values, how would a server know which file to use?

is there any resources for that

Thanks in advance

Namit Thapa

Posted: Tue Sep 06, 2005 4:23 am
by feyd
SSL, for one is needed (at least to duplicate the url you posted). ForceType or mod_rewrite rules can perform the mapping to a file.

I didn't get

Posted: Tue Sep 06, 2005 4:34 am
by namitjung
Thank You for you reply,

But i didn't get what you say?Can You explain it more?Is there any website which can provide online tutorial about this?

About ssl i had already obtainned ssl from versigin and installed it on my machine.

Posted: Tue Sep 06, 2005 4:42 am
by feyd

Posted: Tue Sep 06, 2005 4:45 am
by dbevfat
I don't think that's php, I'm guessing cgi-bin are some cgi binary scripts, but, as posted, with mod_rewrite you should at least be able to use similar urls.

Thank You feyd

Posted: Tue Sep 06, 2005 4:53 am
by namitjung
Thank You feyd,

Since i am using IIS till now, i can't modify .htaccess file.So I will install Apache and will try to rewrite an engine for that.

Thank you once again

Posted: Tue Sep 06, 2005 5:08 am
by Weirdan
feyd wrote:ForceType or mod_rewrite rules can perform the mapping to a file.
why wouldn't MultiViews suffice?

Posted: Tue Sep 06, 2005 5:14 am
by feyd
I never said it couldn't ;)

Posted: Tue Sep 06, 2005 9:23 am
by Chris Corbyn
You can actually use PHP for CGI scripts... it just doesn't make as much sense :)
You can change the extensions that Apache handles with PHP.
You can use mod_rewrite.

But on a standard HTTP server like Apache... (maybe this can be turned off), the HTTP headers contain information which states the content is powered by PHP.

Posted: Tue Sep 06, 2005 9:35 am
by feyd
d11wtq wrote:But on a standard HTTP server like Apache... (maybe this can be turned off), the HTTP headers contain information which states the content is powered by PHP.
http://php.net/ini.core#ini.expose-php

;)