-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpd.conf
37 lines (27 loc) · 835 Bytes
/
httpd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Basic Apache HTTP Server Configuration
# Set the server's user and group
User root
Group daemon
# Server root directory
ServerRoot "/usr/www/htdocs"
# Listen on port 80
Listen 80
# Document root
DocumentRoot "/var/www"
# Default directory index files
DirectoryIndex index.html index.php
# Allow access to the document root
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# Log files
ErrorLog "/var/log/httpd-error.log"
CustomLog "/var/log/httpd-access.log" common
# Load necessary modules
LoadModule mime_module libexec/apache/httpd/modules/mod_mime.so
LoadModule dir_module libexec/apache/httpd/modules/mod_dir.so
LoadModule php_module libexec/apache/httpd/modules/libphp.so
# PHP settings (optional, if using PHP)
AddType application/x-httpd-php .php