LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2018, 05:55 PM   #1
voido
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Rep: Reputation: Disabled
Help with Appache and SSL issues


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.

Last edited by voido; 04-27-2018 at 06:30 PM.
 
Old 04-27-2018, 06:51 PM   #2
voido
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
After hours of digging around I have fixed this by reinstalling mod_ssl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL on OHS issues tejo909 Linux - Server 1 01-30-2018 11:40 AM
apache 2.2.8+ssl issues after make kulg123 Linux - Software 9 06-16-2014 11:14 AM
Regarding SSL issues (again) hydraMax LQ Suggestions & Feedback 2 02-14-2012 02:08 AM
apache 2.2.8+ssl Issues After Make kulg123 Linux - General 1 07-01-2008 02:33 AM
ssl issues dannyk1 Linux - Newbie 5 09-24-2004 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration