Koozali.org: home of the SME Server

Cannot acces https

Offline meelis

  • ***
  • 112
  • +0/-0
Cannot acces https
« on: November 14, 2012, 09:02:09 AM »
I changed phpbasedirectory primary ibay and now i cant access webmail and server-manager etc.. this is httpd error log
tail -f /var/log/httpd/error_log
[Wed Nov 14 09:44:06 2012] [warn] NameVirtualHost 0.0.0.0:443 has no VirtualHosts
[Wed Nov 14 09:44:06 2012] [warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts

and browser says error: ssl_error_rx_record_too_long

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #1 on: November 14, 2012, 10:51:58 AM »
Can this may fix the problem if recrate certifcates?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cannot acces https
« Reply #2 on: November 14, 2012, 10:56:09 AM »
meelis

Quote
I changed phpbasedirectory primary ibay ....

I suggest you undo that change and then see if things work OK again.
If so, you can then work out how to correctly make the required change.

You may want/need to move your Primary ibay content to a regular ibay, so that way if you make any changes to the ibay folder it will not upset the rest of your server's main domain functionality.
Just a guess & a suggestion, as I did not research your problem.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #3 on: November 14, 2012, 10:58:33 AM »
I changed back but i still get this error ssl_error_rx_record_too_long

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #4 on: November 14, 2012, 02:00:57 PM »
 :-( Has enybody can help me, i cant access server-manager and eny page if https required?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot acces https
« Reply #5 on: November 14, 2012, 02:33:22 PM »
I changed back

how?

post the output of
Code: [Select]
db accounts show Primary

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #6 on: November 14, 2012, 04:03:29 PM »
   CgiBin=enabled
    Group=shared
    Modifiable=yes
    Name=Primary i-bay
    PHPBaseDir=/home/e-smith/files/ibays/Primary:/tmp
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-group-rd-everyone

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot acces https
« Reply #7 on: November 14, 2012, 05:56:51 PM »
try
Code: [Select]
db accounts delprop Primary PHPBaseDir
signal-event ibay-modify Primary

should do the trick

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #8 on: November 14, 2012, 06:15:22 PM »
not working, webpages over http working but over https not

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot acces https
« Reply #9 on: November 14, 2012, 06:19:36 PM »
Quote
to remove all old & unwanted files do the following (make a backup of files in these folders first, if you have commercial certificates). You should answer y to accept each file removal one at a time.
Code: [Select]
rm /home/e-smith/ssl.crt/*
rm /home/e-smith/ssl.key/*
rm /home/e-smith/ssl.pem/*
signal-event post-upgrade
signal-event reboot

from the wiki..
try.. and, obviously, close and reopen your browser

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #10 on: November 14, 2012, 07:10:53 PM »
nothing same problem

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #11 on: November 14, 2012, 08:18:07 PM »
http://www.sslshopper.com/ssl-checker.html# says No SSL certificates were found?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot acces https
« Reply #12 on: November 14, 2012, 10:10:25 PM »
meelis

what else did you modify?

Offline meelis

  • ***
  • 112
  • +0/-0
Re: Cannot acces https
« Reply #13 on: November 15, 2012, 07:25:53 AM »
I dont now, i think something wrong is http.conf or/and virtual hosts. I see this errors
[warn] NameVirtualHost 0.0.0.0:443 has no VirtualHosts
[warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts
this is my httpd.conf, http://www.vkok.ee/httpd.confu.txt

and this error PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '' for inclusion (include_path='.:/usr/share/pear-addons:/usr/share/pear')


« Last Edit: November 15, 2012, 08:01:37 AM by meelis »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Cannot acces https
« Reply #14 on: November 15, 2012, 10:18:50 AM »
please post the output of
Code: [Select]
/sbin/e-smith/audittools/templates

BTW, you can see what you did using
Code: [Select]
history

finally, a suggestion: NEVER play with your production server.. use a virtual machine to test