Archive for the 'Web server (Apache2)' Category
Posted by: admin at 11 Monday 8th, 2008
Start and restart Apache server is configured to start automatically.
The server has been previously set as follows.
# cd /usr/local/etc/rc.d
# cp /usr/local/apache2/bin/apachectl /usr/local/etc/rc.d/apache.sh
# chmod 0755 /usr/local/etc/rc.d/apache.sh
It is, apachectl start to start with it recently is as follows.
/etc/rc.local
# Start Apache
/usr/local/apache2/bin/apachectl start
apachectl will pass through if you do not know how to install different versions and looks in the following way. Posted by: admin at 11 Monday 5th, 2008
A previous version of Apache by default AddDefaultCharset directive "ISO-8859-1 (Latin-European languages, French, German)" is specified.
Apache2.2 later, AddDefaultCharset default setting of this directive is not.
httpd.conf and fixes. httpd.conf is usually located below. Or
httpd.conf
AddDefaultCharset off
However, in this case, the following pages all the charset must be specified.
<META http-equiv=Content-Type content="text/html; charset=Shift_JIS">
All content is the same character coding (charset) in the charset you can also specify the following.
httpd.conf
AddDefaultCharset EUC-JP
Whenever you finish a fix, Apache to restart.
# /usr/local/apache2/bin/apachectl restart
apachectl will pass through if you do not know how to install different versions and looks in the following way. Posted by: admin at 11 Monday 5th, 2008
If you enter the directory name to your browser's address field, index.html / index.php / index.cgi if you index.html / index.php / index.cgi the subject, how to avoid them and still see the file list.
Google in the index of If you search, you'll get to what分RI.
httpd.conf and fixes. httpd.conf is usually located below. Or
httpd.conf
Options Indexes FollowSymLinks
↓ Indexes remove Whenever you finish a fix, Apache restart.
# /usr/local/apache2/bin/apachectl restart
apachectl will pass through if you do not know how to install different versions and looks in the following way. Posted by: admin at 11 Monday 5th, 2008
httpd.conf and fixes. httpd.conf is usually located below. Or Commented out of the bullet (#), remove the httpd.conf
AddHandler cgi-script .cgi
Options to change the directive httpd.conf
<Directory />
Options ExecCGI FollowSymLinks Includes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Posted by: admin at 11 Monday 5th, 2008
httpd.conf and fixes. httpd.conf is usually located below. Or
httpd.conf
Alias / USERNAME / "/home/ USERNAME /public_html/"
<Directory "/home/ USERNAME /public_html">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Directory in the directive is an example. Please change if necessary.