Skip to content
Tuto HTTP logo
Tuto HTTP (2022-11-08 14H (Europe/Paris)) virtualhost example 1
Type to start searching
Tuto HTTP
  • Index
  • HTML
  • htmx
  • Tuto DevOps
  • Servers
  • C HTTP servers
  • Apache (/əˈpætʃi/ ə-PATCH-ee) HTTP server
  • Apache authentication
  • Basic Apache authentication (RFC 7617)
  • virtualhost
Tuto HTTP
  • People
  • HTTP news
  • Browsers
  • HTTP
  • Servers
    • C HTTP servers
      • Apache (/əˈpætʃi/ ə-PATCH-ee) HTTP server
        • Apache definition
        • Apache glossary
        • Apache versions
        • HTTP Apache2 on GNU/Linux
        • Apache authentication
          • Apache authentication definition
          • Basic Apache authentication (RFC 7617)
            • htpasswd
            • virtualhost
              • virtualhost example 1
                • Show Source
            • HTTP requests and response headers
            • HTTP Apache2 Basic Authentication example 1
        • Apache logs
        • Directives Apache2
        • Apache modules
      • nginx /ɛndʒɪnˈɛks/ EN-jin-EKS HTTP server
    • Go HTTP servers
    • nodejs HTTP server
    • Python HTTP servers
  • Load testing
  • Tutorials
  • Glossaires
  • Meta
  • Show Source

virtualhost example 1 ¶

See also

  • https://tecadmin.net/how-to-setup-basic-apache-authentication-using-virtualhost/

<VirtualHost *:80>
...
        <Location />
                Deny from all
                #Allow from (Set IP to allow access without password)
                AuthUserFile /etc/apache2/.htpasswd
                AuthName "Restricted Area"
                AuthType Basic
                Satisfy Any
                require valid-user
        </Location>
...
</VirtualHost>
Previous virtualhost
Next HTTP requests and response headers
© Copyright 2019-2022, DevOps people Built with sphinx 5.3.0 Python 3.11.0.
Last updated on Nov 08, 2022.
Created using Sphinx 5.3.0. and Material for Sphinx