Hey guys, I am new to linux and to apache. I have set up a postfix server as a lab to mess around with. I am somewhat savvy with mail servers so I figured this would be fun. Anyway, I had a self signed cert set up and installed and decided to purchase a cert from a auth. I installed it but missed a step and in my bumbling around to fix it I accidentally deleted the following directory.
/etc/ssl/certs/
I attempted to recreate it and place my certs in the folder but now apache will not start. I see the following errors in the /var/log/httpd/ssl_errorlog
AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
also in error_log
The Alias directive in /etc/httpd/conf/httpd.conf at line 354 will probably never match because it overlaps an earlier Alias.
AH00112: Warning: DocumentRoot [/var/www/html/jkengland.com] does not exist
I have tried ripping out appache and reinstalling but this has not worked.
Any advice on this would be appreciated!
EDIT:
I have the following in my httpd.conf file
355 Alias /webmail /usr/share/squirrelmail
356 <Directory /usr/share/squirrelmail>
357 Options Indexes FollowSymLinks
358 RewriteEngine On
359 AllowOverride All
360 DirectoryIndex index.php
361 Order allow,deny
362 Allow from all
363 </Directory>
364
365 <VirtualHost *:80>
366
367 ServerName mail.jkengland.com
368
369 <Location />
370
371 Redirect permanent /
https://jkengland.com/
372
373 </Location>
374
375 </VirtualHost>
376
377 <VirtualHost *:443>
378
379 ServerName mail.jkengland.com
380
381 Documentroot /var/www/html/jkengland.com
382
383 SSLEngine On
384
385 SSLCertificateFile /etc/ssl/certs/mail_jkengland_com.crt
386
387 SSLCertificateKeyFile /etc/ssl/private/jkengland.com.key
388
389 SSLCertificateChainFile /etc/ssl/certs/mail_jkengland_com.ca-bundle
390
391 </VirtualHost>
392
when i reinstalled Apache, the service started fine but when I add this info back from my backup it fails again.