linux - apache virtual host subdomains is accessable only by localhost -


i try make pic.localhost virtual host accessible public network(all of internet) problem works on same machine in address pic.localhost not accessible lan network, machine runs it. should do?

i add , edited files make pictures sub domain site: 1 - included httpd-vhosts file in httpd.conf file. 2 - added httpd-vhosts file lines:

<virtualhost *:80>     serveradmin admin@domain     documentroot "/opt/lampp/htdocs/"     servername pic.localhost #    serveralias www.pic.localhost     errorlog "logs/picture-error_log"     customlog "logs/picture-access_log" common </virtualhost> 

3 - added line /etc/hosts

127.0.0.1                pic.localhost 

4 - restarted xampp server

i running xampp 5.6.8 on centos 7 machine.

centos 7 has firewall default blocks ports (including port 80). in comand line, sudo privileges try..

service firewalld stop 

then in terminal see centos lan ip (ifconfig) , try access ip (ex 192.168.1.100). if able access web-server. try machine , in browser tipe http://centos-lan-ip centos-lan-ip centos machine ip.

hope works


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -