Free for PREMIUM members
[Webinar] Streamline your web hosting managementRegister Today
[root@broken ~]# grep '^ServerRoot' /etc/httpd/conf/httpd.conf
[root@broken ~]# cd /etc/httpd
[root@broken httpd]# ls -l
drwxr-xr-x. 4 root root 4096 Sep 18 02:45 ./
drwxr-xr-x. 67 root root 4096 Sep 22 03:27 ../
drwxr-xr-x. 2 root root 4096 Sep 18 02:45 conf/
drwxr-xr-x. 2 root root 4096 Sep 20 02:13 conf.d/
lrwxrwxrwx. 1 root root 19 Sep 18 02:45 logs -> ../../var/log/httpd/
lrwxrwxrwx. 1 root root 29 Sep 18 02:45 modules -> ../../usr/lib64/httpd/modules/
lrwxrwxrwx. 1 root root 19 Sep 18 02:45 run -> ../../var/run/httpd/
[root@broken httpd]# ls -l modules/mod_dir.so
-rwxr-xr-x. 1 root root 10416 Jul 7 03:31 modules/mod_dir.so*
Open in new window
I have added 127.0.0.1 www.myhost.org to /etc/hosts
How can I configure it so that it points to index.php ?
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
LoadModule dir_module modules/mod_dir.so
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $79.20.
Premium members get this course for $159.20.
Premium members get this course for $39.20.
Premium members get this course for $143.20.
Premium members get this course for $389.00.
Premium members get this course for $63.20.