In Ubuntu, You need to configure the \ var \ www \ linuxidc directory as linuxidc.com. 1. Open the: \ etc \ hosts file: sudovi \ etc \ hosts Add: 127.0.0.1linuxidc.com. 2. open: \ etc \ apache2 \ sites-available \ 000-default added in the header: NameVirtualHost *: 80 3. In the Directory: etc \
In Ubuntu, You need to configure the \ var \ www \ linuxidc directory as linuxidc.com.
1. Open the: \ etc \ hosts file: sudo vi \ etc \ hosts
Add: 127.0.0.1 linuxidc.com
2. Open: \ etc \ apache2 \ sites-available \ 000-default
Add NameVirtualHost *: 80 in the header
3. Create a file named 'linuxid' under the Directory: etc \ apache2 \ sites-available \ (sudo touch linuxidc)
Edit the file content:
ServerName linuxidc.com
ServerAlias * .linuxidc.com
DocumentRoot "/var/www/linuxidc /"
ErrorLog "/var/log/apache2/edunuke_errors.log"
CustomLog "/var/log/apache2/edunuke_accesses.log" common
4. restart apache: sudo/etc/init. d/apache2 restart