location of index.html CentOS 6
Posted
by
user2118559
on Server Fault
See other posts from Server Fault
or by user2118559
Published on 2013-10-22T14:59:01Z
Indexed on
2013/10/22
15:56 UTC
Read the original article
Hit count: 422
Based on this http://www.servermom.com/how-to-add-new-site-into-your-apache-based-centos-server/454/ tutorial installed Apache-based CentOS Server
I use putty.exe
as editor
vi /etc/httpd/conf/httpd.conf
at very bottom modified to
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/fikitipis.com/public_html
ServerName www.fikitipis.com
ServerAlias fikitipis.com
ErrorLog /var/www/fikitipis.com/error.log
CustomLog /var/www/fikitipis.com/requests.log common
</VirtualHost>
So expect that index is at /var/www/fikitipis.com/public_html
When in browser type ip address of server, see Apache 2 Test Page
powered by CentOS
and so on You may now add content to the directory /var/www/html/
Then
[root@vps ~]# ls /var/www/
see
cgi-bin domain.com error fikitipis.com html icons
Checking content of directories
ls /var/www/domain.com/public_html
, ls /var/www/fikitipis.com/public_html
, /var/www/html/
are empty
Where is index.html
?
Did touch /var/www/fikitipis.com/public_html/index1.html
then vi /var/www/fikitipis.com/public_html/index1.html
, typed a
, then wrote some text in file, then Escape and shift+zz
. And in browser http://111.111.11.111/index1.html
and see what I had wrote. So until now seems that all works
© Server Fault or respective owner