.do extension on web pages?

I want to know what the .do extension on web pages is. Is this a standard extension or, if it is not, can I change the extension (for example, client-login.php to client-login.do and still work like PHP)?

Thank.

+43
execution
Dec 26 '10 at 4:42
source share
5 answers

This is what is configured to be on this particular web server. The web server can be configured to run .pl files with the php module and .aspx files with perl, although that would be stupid. There are no scripts associated with most web servers, instead you will have to look in your apache configuration files (or equivalent if other server software is used). If you have permission to edit the server configuration file, you can make the files ending in .do run as php if you need to.

+31
Dec 26 2018-10-12T00:
source share

.do comes from the framework of Struts. See This question: Why do Java web applications use the .do extension? Where did she come from? You can also change how your URLs look using mod_rewrite (on Apache).

+120
Dec 26 2018-10-12T00:
source share

". do" is the standard extension displayed for the Struts Java platform. See http://struts.apache.org/ .

+33
Dec 26 2018-10-12T00:
source share

Using apache rewrite_module can change your script extensions. Give this thread a good read.

+3
Dec 26 2018-10-12T00:
source share

I sometimes thought that this might serve the purpose of adding a layer of security by obscuring the internal interpreter by reassigning .php or any other .aspx or any other so that any potential hacker is sent down the wrong path, at least for a while. I never bothered to try, and I no longer deal with the web server, so this is hardly possible.

However, I would be interested in the perspectives of an experienced server administrator on this concept.

0
Jan 13 '17 at 5:02
source share



All Articles