Home  >  Q&A  >  body text

Front-end - Web internal web page login control, how to control it through apache? Are there any other controls?

listen 8080
<Directory "/var/www/html/test">
    Order allow,deny
    deny from all
</Directory>

<VirtualHost *:8080>
    DocumentRoot /var/www/html/test
<Directory "/var/www/html/test">    
    order allow,deny
    deny from all
    allow from xxx.xxx.xxx.xxx
</Directory>
</VirtualHost>

Is it possible to only allow users on a specific network to access the contents of this folder through this port? Can’t the rest of the people?
On this basis, can we also add account and password verification to log in?

ringa_leeringa_lee2713 days ago446

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-16 17:03:33

    The properties of Apache and Nginx should be similar.

    reply
    0
  • Cancelreply