PHP Classes

File: ConfigExamples/apache.conf

Recommend this page to a friend!
  Classes of Aleksey Nemiro  >  PHP Small Server Administrator  >  ConfigExamples/apache.conf  >  Download  
File: ConfigExamples/apache.conf
Role: Auxiliary data
Content type: text/plain
Description: Website config example for Apache2
Class: PHP Small Server Administrator
Web panel for small Debian and Ubuntu servers
Author: By
Last change:
Date: 6 years ago
Size: 1,043 bytes
 

Contents

Class file image Download
# is an example of a site configuration file for apache # rename and place this file in the folder "/etc/apache2/sites-available" # and make the necessary changes # to enable site, use the following command: # sudo a2ensite yourConfigFileName <VirtualHost *> # default path, but you can use own DocumentRoot /usr/share/ssa-webpanel/www # your domain here ServerName panel.example.org <Location /> AllowOverride All Order Allow,Deny Allow from all DirectoryIndex index.html index.htm index.php # be sure to restrict access to your panel AuthType Basic AuthName "Control panel" AuthUserFile /usr/share/ssa-webpanel/.htpasswd Require valid-user # Require all granted # to create .htpasswd use the following command: # sudo htpasswd -dcb /usr/share/ssa-webpanel/.htpasswd usersnameToAccess userPassword # note: use arguments -db (without c) to add new users to existing file: # sudo htpasswd -db /usr/share/ssa-webpanel/.htpasswd otherUser password </Location> </VirtualHost>