A
A
azaza2018-11-18 21:33:50
linux
azaza, 2018-11-18 21:33:50

Xampp/virtual hosts/domain spinning. ask for help?

Good time
, I can’t set up
a domain in any way (I registered an external ip, cname alias registered www.site.com)
I make a virtual host, for example.

/opt/lampp/etc/extra/httpd-vhosts.conf

<VirtualHost *:80>
  DocumentRoot "/home/user/www/site.com/public_html"
  ServerName site.com
  <Directory "/home/user/www/site.com/public_html">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
  </Directory>
  ErrorLog "logs/site.com-error_log"
  CustomLog "logs/site.com-access_log" common
</VirtualHost>

дале
пытаюсь прикрутить в хосту внешний ip

 /etc/hosts

127.0.0.1	localhost
127.0.1.1	debian
вот он
176.98.70.63	site.com

on the virtual host site.com is loaded, everything is OK
by going to the external ip localhost is loaded
from the folder
/opt/lampp/htdocs/
how to make the site.com site open by ip
i.e. it now opens only on my PC
from the outside by ip the folder opens
/opt/lampp/htdocs/
but the site is in the folder
/home/user/www/site.com/public_html
tell me what is not so do

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Aleksandrov, 2018-11-18
@jamakasi666

Repeat the question, quickly catch the ban.
You have already given a completely exhaustive answer in the previous question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question