Home > Documentation > Apache web server > Apache web server on SuSE

Apache web server on SuSE

Posted by peter on October 24, 2011

Apache is the Linux web server. Make sure you install apache2 from the installation CD. You can also download it from the Internet.

Getting Apache running

Start the apache at the command prompt by typing the command

rcapache2 start.

To make sure that it starts at boot type the command

chkconfig apache2 on

If you have installed the demo web pages you will get a web page to confirm that it works.

Configuring Apache

With SuSE web pages are stored in the /srv/www/htdocs/ folder. Other distros could store default web pages in other locations (In older versions, web pages were stored in the following directory /usr/local/httpd/htdocs/)
Copy your own web site to this location (by default the home page is index.html) If you want to use another name you need to do the following:

vi the file etc/apache2/httpd.conf and Find the line “DirectoryIndex index.html” Add to the same line after “index.html” any other page name you want to use. (Apache searches in the order of the page names you specify and servers the first one it comes across)

Comments:

Leave a Reply



(Your email will not be publicly displayed.)

Please type the letters and numbers shown in the image.Captcha CodeClick the image to see another captcha.