Install Web Server di Fedora

-|apache

#yum -y install httpd
#yum -y install mod_ssl
#yum -y install httpd-manual
#yum -y install mod_perl
#yum -y install mod_auth_mysql
#yum -y install crypto-utils
#yum -y install mod_python
#/etc/init.d/httpd start

FYI:
-|Apache tips

Remove your server's signature

su -c 'cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf_original'
su -c 'gedit /etc/httpd/conf/httpd.conf '

* find the line "ServerSignature"

* Change "ServerSignature on" to

ServerSignature off

* Underneath add this line:

ServerTokens ProductOnly

* Save and close the text editer

* restart apache

su -c '/etc/rc.d/init.d/httpd restart'

How to map URLs to folders outside /var/www/

* Read #General Notes
* Read #How to install Web Server

su -c 'gedit /etc/httpd/conf.d/alias'

* Insert the following lines into the new file

Alias /URL-path /location_of_folder/


Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all


* Save the edited file

su -c '/etc/init.d/httpd restart'

* http://localhost/URL-path

How to change the default port number for Apache HTTP Server

* Read #General Notes
* Read #How to install Web Server

e.g. Assumed that new port number is 78

su -c 'cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf_backup'
su -c 'gedit /etc/httpd/httpd.conf'

* Find this line

Listen 80

* Replace with the following line

Listen 78

* Save the edited file

/etc/init.d/httpd restart

* http://localhost:78

www.fedoraguide.info

0 comments: