How to get my localhost with a different directory to my index working)?
Posted
by
blade19899
on Ask Ubuntu
See other posts from Ask Ubuntu
or by blade19899
Published on 2012-10-28T21:26:39Z
Indexed on
2012/10/28
23:21 UTC
Read the original article
Hit count: 206
I can't get my apache configuration to open my index.html
I edited my /etc/apache2/apache2.conf
and added the following at the bottom.
<VirtualHost *:80>
DocumentRoot /media//DATA/directory/to/my/index-file/
ServerName host-test.com
</VirtualHost>
Then I restarted my entire pc, but when I open localhost I get the:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
Page and not the code written in my index.html?
How to get my localhost with a different directory to my index working in Ubuntu 12.10(amd64)?
© Ask Ubuntu or respective owner