You are not logged in.

#1 2014-01-31 02:39:20

TheCyberShocker
Member
Registered: 2014-01-31
Posts: 5

Archlinux apache2 indexing issue.

I made it so that the root directory is visable but the issue is if I go to http://mydomain.com/ it shows the root directory, but I want it to display index.html or index.php like normal, help please? (Only installed arch today)

Offline

#2 2014-01-31 02:51:01

TheCyberShocker
Member
Registered: 2014-01-31
Posts: 5

Re: Archlinux apache2 indexing issue.

I added index.php to directory listing in httpd.conf but get this error now,

systemctl status httpd.service
httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Fri 2014-01-31 02:48:51 GMT; 11s ago
  Process: 1557 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
  Process: 1581 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 1483 (code=exited, status=0/SUCCESS)

Jan 31 02:48:51 homeserver apachectl[1581]: Syntax error on line 241 of /etc/httpd/conf/httpd.conf:
Jan 31 02:48:51 homeserver apachectl[1581]: Invalid command 'DirectoryIndex:', perhaps misspelled or defined by a module not included in the server configuration
Jan 31 02:48:51 homeserver systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 31 02:48:51 homeserver systemd[1]: Failed to start Apache Web Server.
Jan 31 02:48:51 homeserver systemd[1]: Unit httpd.service entered failed state.

Last edited by TheCyberShocker (2014-01-31 02:51:59)

Offline

#3 2014-02-01 02:00:10

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: Archlinux apache2 indexing issue.

Check line 241 of /etc/httpd/conf/httpd.conf as indecated in the error message.

I'm a little rusty on my apache2 configuration skills but It appears maybe you have "DirectoryIndex:" as opposed to "DirectoryIndex"

See http://httpd.apache.org/docs/2.2/mod/mod_dir.html for proper syntax.

If you can't fix it post that line from your /etc/httpd/conf/httpd.conf file using [ code ] [ / c o d e ] tags.

Offline

Board footer

Powered by FluxBB