Entries Tagged as 'Apache'

Turn off directory listing on GlassFish server to prevent browsing of folders

By default the directory listing is turned on on GlassFish application server. This is great while developing as one can see list of files and folders in one's web application.

However, on a live web application, the need for greater security necessitates that directory listing is turned off so that users are prevented from browsing files and folders in one's webroot.

To turn off directory listing is a two-step process. First, set the "listing" node to "false" in config/default-web.xml file. And second, redeploy the web application in question. Just changing the default-web.xml won't suffice. Once the web application is redeployed, the directory listing is turned off.

Online tool for creating Apache .htaccess files

Creating/modifiy the Apache webserver .htaccess files by hand can be a bit of a pain at times.

Today I came across a website that lets one generate an .htaccess file using a nice, Ajax-y web interface.

For example, to setup authentication, one has to create a user. You can do that by simply filling out a simple form like:

Create .htaccess file

Read more...

Subversion does not work with Apache 2.2

Part of rebuilding my laptop was to get Subversion going.

Installed Subversion server 1.4. As I like to access it over http using Apache, I installed latest build of Apache 2.2.

But after making changes to http.conf to get Apache to work with Subversion, Apache server refused to start up. The Apache logs didn't contain anything descriptive on why the server was not starting up.

Then I came across the following warning on the Subversion downloads page:

Note that the Apache modules included in this package was compiled against Apache HTTP Server 2.0, and thus will not work with Apache HTTP Server 2.2.

So that was the problem. Have now uninstalled Apache 2.2 and am installing Apache 2.

Hopefully that will work.