Apache 2 for Redhat Linux:: ServerAlias does not resolve to correct URLs
ServerAlias is a new directive incorporated in Apache 2 that allows a virtual host to answer to URL queries under many names.
The good thing about it is that you do not need another VirtualHost container to forward different URLs to one site. The downer is that unlike the Redirect directive, ServerAlias does not resolve the URL field of HTTP 1.1 browsers to the canonical name nor the main virtual host name. So if you use CGIs, SSIs, or any kind of scripting that refers to an relative path, you might want to stay away from using the ServerAlias directive.
Apache 2 for Redhat Linux:: Displaying Japanese correctly
After upgrading kukai from RH 7.1 to RH 8, all Japanese websites hosted on kukai showed problems when displaying Japanese characters. In short, I got “moji-bake”.
Apache2 has new directives for languages and encodings. One of which is DefaultEncoding. This is set to iso-8155-1 as the default, for English and Latin characters. You'd think changing this to Shift-JIS or EUC_JP would fix the problem, but it won't and it didn't.
What you do is turn it off completely, just comment out the line in the httpd.conf file.
This problem has been fixed in Apache 2.0.4
Apache 2 for Redhat Linux:: Auth_digest prevents HTTPD from starting
After updating Apache to 2.0.3, auth_digest was preventing httpd from starting. Since I didn't o I commented out the lines from httpd.conf. The httpd service starts normally now.
This problem has been fixed with Apache >= 2.0.4
Apache 2 for Redhat Linux:: SSL for Apache2
Traditionally, when using SSL with Apache, one had to configure Apache with modSSL and/or OpenSSL before make.
The modSSL project does not officially support Apache2. Therefore, you'll have to live with the Redhat distro. The RedHat 8 RPM distros of Apache2 is already compiled with a special build of modSSL, so I recommend using those. Also, to be safe, get the Redhat distro for openSSL – not from the openSSL project.
Install the packages if you haven't yet:
rpm -ivh httpd-[i]nn[/i].rpm
rpm -ivh openssl-[i]nn[/i].rpm
Now you need to:
1. Create public RSA key
2. Create a certificate request (CSR)
3. Create a dummy certificate to test site
4. Install official CA certificate once received
All of this can be found HERE.
Just in case they erase the page, here are some notes:
openssl genrsa -des3 -out filename.key 1024
openssl req -new -key filename.key -out filename.csr
openssl req -new -key filename.key -x509 -out filename.crt
When you installed openSSL, it had created an Apache ssl.conf file in the /etc/httpd/conf.d directory. This is where all default SSL virtualhost info is saved, but you must go into each virtualhosts' respective conf files and configure them for SSL.
[b] SSLOptions +StdEnvVars[/b]
Apache 2 for Redhat Linux:: Apache 2.0.4 and PHP 4.3.1
At the time of this writing, Apache 2 is not officially supported by the PHP.net distro of the PHP4 engine. Apache2 is NOT a production grade server yet. Why Redhat decided to make it the default server from v.8 of its Linux distro – I don't know.