Changes

Jump to: navigation, search

Configuring an Ubuntu Linux Based Web Server

647 bytes added, 15:28, 2 July 2007
Configuring the Apache Web Server for Your Domain
DocumentRoot /var/www/myexample.com
</pre>
 
Next, we need a copy of the /etc/apache2/sites-available/myexample.com configuration file in /etc/apache2/sites-enabled. We do this by creating a symbolic link from the file in sites-available:
 
<pre>
cd /etc/apache2/sites-enabled
ln -s /etc/apache2/sites-available/myexample.com .
</pre>
 
Next, create the /var/www/myexample.com directory and place an index.html file in it. For example:
 
<pre>
<html>
<title>Sample Web Page</title>
<body>
Welcome to MyExample.com
</body>
</html>
 
The last step is to restart the apache web server to make sure it picks up our new settings:
 
<pre>
sudo /etc/init.d/apache2 restart
</pre>
 
== Firewall Issues ==

Navigation menu