Can the file access your computer's Web server by modifying the local hosts?

Source: Internet
Author: User
Keywords Linux apache2.4 php linux Network
My Windows configuration Hosts file add dev.aidaogo.com
The Linux Hosts file is also modified to add dev.aidaogo.com

The situation is roughly described:
Both SELinux and the firewall have been shut down.

       /bin/systemctl  iptables       Unknown operation 'iptables'.       setenforce 0

Windows ping dev.aidaogo.com can also ping the same

Linux wget dev.aidaogo.com can be downloaded normally

Netstat-nat
TCP6 0 0::: +:::* LISTEN

Related Apache Configuration

ServerName localhost:80

AllowOverride noneRequire all denied

AllowOverride None#Allow open access:Require all granted

ServerAdmin aidaogoDocumentRoot /home/www/aidaogo/wwwServerName dev.aidaogo.comServerAlias aidaogoErrorLog logs/dev.aidaogo.com-error_logCustomLog logs/dev.aidaogo.com-access_log common

    Options Indexes FollowSymLinks    AllowOverride None    Require all granted


Reply content:

My Windows configuration Hosts file add dev.aidaogo.com
The Linux Hosts file is also modified to add dev.aidaogo.com

The situation is roughly described:
Both SELinux and the firewall have been shut down.

       /bin/systemctl  iptables       Unknown operation 'iptables'.       setenforce 0

Windows ping dev.aidaogo.com can also ping the same

Linux wget dev.aidaogo.com can be downloaded normally

Netstat-nat
TCP6 0 0::: +:::* LISTEN

Related Apache Configuration

ServerName localhost:80

AllowOverride noneRequire all denied

AllowOverride None#Allow open access:Require all granted

ServerAdmin aidaogoDocumentRoot /home/www/aidaogo/wwwServerName dev.aidaogo.comServerAlias aidaogoErrorLog logs/dev.aidaogo.com-error_logCustomLog logs/dev.aidaogo.com-access_log common

    Options Indexes FollowSymLinks    AllowOverride None    Require all granted


OK
Hosts
127.0.0.1 www.test.com

Apache Conf


  
   
    
       DocumentRoot "D:/web/www"    ServerName www.test.com    
   
    
     
            Options FollowSymLinks Indexes        AllowOverride All        Order deny,allow        Allow from 127.0.0.1        Deny from all        Require all granted    
   
    
  
   
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.