Configure Apache with index,html and index.php Step1: Install Apache Step2:Check status Step 3 Check on browser. Step4: Now set up Apache virtual host on Ubuntu keenable@isgec:~$ sudo mkdir -p /var/www/example.com/public_html Step5 Edit index.html in public_html folder,with following config. =========================== <!DOCTYPE html> <html lang= "en" dir= "ltr" > <head> <meta charset= "utf-8" > <title>Welcome to example.com</title> </head> <body> <h1>Success! example.com home page!</h1> </body> </html> =========================== Step6:create virtual host keenable@isgec:/etc/apache2/sites-available$ sudo vim example.com.conf ============================ <VirtualHost *: 80 > ServerName example.com ServerAlias www.example.com ServerAdmin webmaster@example.com DocumentRoo...
Comments
Post a Comment