LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2009, 09:36 AM   #1
simonm
LQ Newbie
 
Registered: Sep 2008
Posts: 29

Rep: Reputation: 15
Symlink? Just Installed SSL... Wont Work


We have a dedicated server with fasthosts.co.uk.

Our website was working fine on http://

We installed the SSL certificate, and now the website will ONLY work when browsed to by entering https://

When browsed to by http:// we just get a white screen, i was told i would have to setup a SymLink, but i do not know how to do this.

Also, we were told this is because we have a https and a http folder, but we do NOT, we only have a HTDOCS folder, nothing else.

Please advise the way forward, do i enter a command using SSH and if so, is this using the dedicated server root details?

Thank you,
Simon
 
Old 01-21-2009, 02:13 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You need to setup a redirect if you want your users to only browse via https

Code:
RedirectPermanent / https://your_site_ext/
 
Old 01-21-2009, 04:42 AM   #3
simonm
LQ Newbie
 
Registered: Sep 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Where do i enter the above line, in httpd.conf? if so, at any particular location of the file?

Thank you!
 
Old 01-21-2009, 04:46 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
If the site is a virtualhost it needs to be within the virtualhost definition. If not it needs to be in the normal http.conf not the mod_ssl part.
 
Old 01-21-2009, 07:27 AM   #5
simonm
LQ Newbie
 
Registered: Sep 2008
Posts: 29

Original Poster
Rep: Reputation: 15
But i have a dedicated server with 5 different IP's and 5 different domains. I want this to work on all the domains, how would i do that?
 
Old 01-21-2009, 07:29 AM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Am sure you are using IP based virtual hosting so you need a redirect in each vhost.
 
Old 01-21-2009, 07:30 AM   #7
simonm
LQ Newbie
 
Registered: Sep 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks for your time and help, how do i do that, i.e in every vhost.
 
Old 01-21-2009, 10:16 PM   #8
yzhong
Member
 
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Rep: Reputation: 16
like this

<VirtualHost *:80>
ServerName example.com
RewriteEngine on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>
 
  


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
wireless driver wont install,ethernet wont work Reanimator Linux - Newbie 4 05-05-2008 09:22 AM
why does not symlink in /etc/rc.d/ work at boot ? sysslack_linux Slackware 7 12-02-2007 02:31 PM
Linmodem installed but wont work. short101 Linux - Hardware 2 05-24-2004 03:45 AM
conexant hsf 2702 modem wont work, even with drivers installed modelo Linux - Hardware 1 02-13-2004 07:28 PM
gtk-config installed but wont work Kane2002 Linux - General 5 12-31-2003 06:19 PM


All times are GMT -5. The time now is 10:28 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