Add the following line to the Apache site configuration file or .htacess to define the default file for the web folder url. Continue reading Apache – Define Directory Index Page
Category Archives: Apache
Apache and SVN Integration
You can access the SVN repository through the HTTP protocol after you have integrated the SVN server with Apache. The following steps were done in Ubuntu Lucid (Ubuntu 10.04 LTS).
1. Install the Apache2, Subversion and libapache2-svn.
- sudo apt-get install apache2 subversion libapache2-svn
Apache – .htaccess VS httpd.conf
So if both .htaccess and httpd.conf can serve the same purpose (Apache – Disable Directory Listing), which one should we pick?
On performance point of view, .htaccess is read every time when the directory is loaded. and each directory can have it own .htaccess. so this may cause a performance hit but seems that it is not very significant.
The Fubra Blog – .htaccess vs httpd.conf
On the other hand, the situation may bother your choice. Not every user got the permission on writing the httpd.conf file and they may even do not have the right to restart the Apache Server. In this case, you have to use .htaccess to restrict the access right.
Here is a summary comparing .htaccess and httpd.conf. Continue reading Apache – .htaccess VS httpd.conf
Apache – Disable Directory Listing
Usually, the web root directory has folders containing the some files and images. When user browse the directory url in the browser, he/she could access those files and images as shown in the following picture.
Continue reading Apache – Disable Directory Listing
Apache – Setup the VirtualHost
Usually, people got more than one website in the Apache web server and sometimes they want to separate them into different domain names. This can be done by the Apache VirtualHost.
The following example is done in Mac MAMP, i guess the configuration on Linux and Windows should be similar. Let’s start now.
1. I have 2 folders in the Apache webroot folder
- drupal-6.19 – The Drupal Application
- HelloWorld – Folder contains simple HTML
.htaccess – Setting Password For Your Web Folder
You can add a .htaccess file to secure your web folder with password protection. Let’s assume the location web folder is /home/ykyuen/public_html
Continue reading .htaccess – Setting Password For Your Web Folder
Drupal – Enable clean URLs
Clean URLs makes the HTTP links easier to read. Without clean URLs, the links would be like this
http://host_domain/drupal/?q=admin/settings/clean-urls
which is hard to read, rite?
Continue reading Drupal – Enable clean URLs
Apache – ProxyPass
I got a virtual machine which is installed with Apache. Normally, the virtual machine can only be accessed by the host computer. So how could i open the virtual machine service to the entire host network but not limited to the host computer?
This can be done by the Apache ProxyPass. Here is an example of setting up the ProxyPass
Continue reading Apache – ProxyPass