users@glassfish.java.net

Re: Hosting domains without apache

From: <glassfish_at_javadesktop.org>
Date: Fri, 14 Sep 2007 12:04:52 PDT

After some quick Google time I stumbled upon: http://linux.softpedia.com/get/Database/Administrative-frontents/MyJSQLView-18721.shtml

I have never used it, but it may be suitable for your needs.

Beyond that, you can easily host static HTML sites in Glassfish, and you can also host CGI sites in Glassfish. (see http://weblogs.java.net/blog/jfarcand/archive/2006/04/enabling_cgi_su_1.html)


Another place GF mostly differs from Apache for basic web functionality, is the fact that it doesn't really provide something like mod_rewrite.

However, there is: http://tuckey.org/urlrewrite/

It basically does the same thing.

With a little bit of work, I think it would be quite straightforward to be able to create a simple "ApacheWar" that gives you mod_rewrite, CGI, and static HTML, and even maybe old school server side includes.

But, simply, you create this very simple WAR, place it someplace on your server, in a directory, and then simply deploy it in place. Then you can manage that just like any other HTML site. FTP the files up just like normal.

You would need to configure the mod_rewrite in the web.xml, but then you can simply redeploy the site in glassfish and it should just work.

You can get PHP to work this way (though obviously mod_php is faster). Also there is a Java implementation of PHP that has some success I think in Glassfish.

There is also a FastCGI servlet available, that would make PHP et al run even better. I've never used it.

So, anyway, the point is that GF gives you the basics of what you need, but also there are several 3rd party components that can be used to round out the whole piece but aren't Glassfish specific.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=235455