Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need some advice on SSL Configurations...


Totally Lost

Recommended Posts

http://www.notmyrealsite.com

 

https://www.notmyrealsite.com (SSL)

 

Are two very different sites, all the configuration changes i make then upload to http:// take effect instantly, when i try to upload to the 'secure' section, none of the updates take effect. As a result, when some goes through the 'check out' section or 'opens an account' the https (secure screen) they see is vastly different than the unsecure.

 

How do i make the two parts of my website consistent? (same stylesheet etc...)

Link to comment
Share on other sites

http://www.notmyrealsite.com

 

https://www.notmyrealsite.com (SSL)

 

Are two very different sites, all the configuration changes i make then upload to http:// take effect instantly, when i try to upload to the 'secure' section, none of the updates take effect.  As a result, when some goes through the 'check out' section or 'opens an account' the https (secure screen) they see is vastly different than the unsecure.

 

How do i make the two parts of my website consistent? (same stylesheet etc...)

If you enter the IP address of your web server in IE do you get your none ssl web page?

Dont forget to Search. Your problem has already been fixed before.<br>

Please visit Manchester-Fireworks.com.

Link to comment
Share on other sites

If you enter the IP address of your web server in IE do you get your none ssl web page?

 

 

Hm...perhaps i havent explained clearly enough. Site one has the look i want....when someone clicks on the "my accounts" section they are taken to to site two. Site two has the default osc set-up. What i would like is to have the look of site one the same as site two.

 

I've tried uploading my files to the https:// directory but no changes take effect. I was have hoping that I needed to make some sort of configuration changes to make all changes of all my files (e.g. header/footer) be the same for both the secure and non-secure section of my site.

Link to comment
Share on other sites

You really don't want to have it setup like that. You'll be maintaining two shops. You should put all of your files in one site and modify the configure files to use ssl. On some hosts that require two directories (httpdocs and httpsdocs), you can place all of the files in one directory and have it work fine. You may need to talk to your host about this.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Easiest way to fix this is put everything in your "non ssl" folder, then make a symbolic link from your "ssl" folder to your "non ssl" folder. That way anytime someone goes to access a secured part of your site, they'll actually still be accessing the documents from your "non ssl" folder. You won't run into any css problems and everything will be in one place.

 

You can talk to your host about how to make symbolic links, or when I get home I can show you a cool little php program that'll let you set them up.

 

*EDIT* BTW, nice name :thumbsup:

Link to comment
Share on other sites

You can talk to your host about how to make symbolic links, or when I get home I can show you a cool little php program that'll let you set them up.

 

That would be nice. Post it here if you can, I don't need it but many people do.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

That would be nice. Post it here if you can, I don't need it but many people do.

 

Symoblic links dont work with Plesk control panel servers.

 

You need to create a vhost_ssl.conf file pointing the SSL to your ordinary httpdocs folder (normal http directory) then run a linux command to load the amended conf file.

 

If anyone needs to know what goes in the conf file let me know.

Link to comment
Share on other sites

be very careful with the script, making sure it is behind an htaccess file area, else someone can wipe out your site

Link to comment
Share on other sites

That's why I would recommend people upload it to a password protected folder, use it, then get rid of it. But it really is a great little program for setting up symbolic links, among other things.

Link to comment
Share on other sites

That's why I would recommend people upload it to a password protected folder, use it, then get rid of it.  But it really is a great little program for setting up symbolic links, among other things.

 

Just when im getting the hang of navigating / editing my way through OSC you add this symbolic link term on me...

 

I've been chatting with my webhost about how to make this alittle easier (i thought maintaining two shops was kinda ridiculous) they seem to think it's perfectly acceptable...anyway, let hope i can put this contrib to use.

Link to comment
Share on other sites

Just when im getting the hang of navigating / editing my way through OSC you add this symbolic link term on me...

 

I've been chatting with my webhost about how to make this alittle easier (i thought maintaining two shops was kinda ridiculous) they seem to think it's perfectly acceptable...anyway, let hope i can put this contrib to use.

 

 

um...ok, lost already over here....no installation instructions? If someone might be able to let me know how to install then use this program that'd be much appreciated,

 

Thanks for all your help!

Link to comment
Share on other sites

This is not a contribution... this is a stand alone program.

 

You upload it to somewhere on your website. I HIGHLY RECOMMEND a password proteceted folder (since you can pretty much change anything on your site using this program). Then just type the address in your webbrowser.

 

Browse to your https folder and use the drop down menu on the right to "create symlink". I don't remember exactly what needs to be done in what order, but you can just play with it a little bit. That's what I did when setting it up and it worked out.

Link to comment
Share on other sites

This is not a contribution... this is a stand alone program.

 

You upload it to somewhere on your website.  I HIGHLY RECOMMEND a password proteceted folder (since you can pretty much change anything on your site using this program).  Then just type the address in your webbrowser.

 

Browse to your https folder and use the drop down menu on the right to "create symlink".  I don't remember exactly what needs to be done in what order, but you can just play with it a little bit.  That's what I did when setting it up and it worked out.

 

Sorry to be a pain...i've created a password protected folder and uploaded the program. Trying to use it....but not really sure how to...conceptionaly i'm not really even sure what im trying to do.

 

What is supposed to be happening?...my user goes to http://www.mypage.com and selects "checkout" then they are lead to https://www.mypage.com/checkout? As a result of my sybolic link? And how does this solve my problem?

 

Totally lost is just that, ive tried doing some research on symbolic links...but cant find anything in english (english means words that are easily understood)...any guidence would be much appreciated.

Link to comment
Share on other sites

Quick and dirty tutorial.

 

1. Before you begin, make sure that your private_html (or whatever the folder your secured stuff falls into) is chmod'd to 777. You can do this using an ftp browser (right click on the folder and hit attributes usually). REMEMBER TO CHANGE IT BACK TO 750 AFTER YOU ARE DONE!

 

2. Open the webadmin.php program and browse to one folder above your catalog folder (so you can see the catalog folder in the window).

 

3. Choose "create symlink" in the function scroll bar to the right of the catalog folder and hit the little arrow next to it.

 

4. Make sure the "relative path to target" is checked

 

5. You should see the server path to your public_html folder (or whatever it is called for you). Change this path to your private_html folder.

 

6. Hit "Create symlink"

 

7. Close the webadmin, remove it from your site, and chmod your private_html folder back to 750

 

Now whenever someone wants to access a secure part of your site, the server will go to the private_html folder, which is then linked to the public_html folder. In other words, all the files in your normal catalog folder can be accessed both nonsecurely and securely... no more trying to keep two copies of anything. :thumbsup:

Link to comment
Share on other sites

Quick and dirty tutorial.

 

1. Before you begin, make sure that your private_html (or whatever the folder your secured stuff falls into) is chmod'd to 777.  You can do this using an ftp browser (right click on the folder and hit attributes usually).  REMEMBER TO CHANGE IT BACK TO 750 AFTER YOU ARE DONE!

 

2. Open the webadmin.php program and browse to one folder above your catalog folder (so you can see the catalog folder in the window).

 

3. Choose "create symlink" in the function scroll bar to the right of the catalog folder and hit the little arrow next to it.

 

4. Make sure the "relative path to target" is checked

 

5. You should see the server path to your public_html folder (or whatever it is called for you).  Change this path to your private_html folder.

 

6. Hit "Create symlink"

 

7. Close the webadmin, remove it from your site, and chmod your private_html folder back to 750

 

Now whenever someone wants to access a secure part of your site, the server will go to the private_html folder, which is then linked to the public_html folder.  In other words, all the files in your normal catalog folder can be accessed both nonsecurely and securely... no more trying to keep two copies of anything. :thumbsup:

 

Done successfully! Should note for anyone else trying to do this that you need to specify the specific folder aswell in the path.

 

Now...to test how it works?

Link to comment
Share on other sites

Done successfully! Should note for anyone else trying to do this that you need to specify the specific folder aswell in the path.

 

Now...to test how it works?

 

I did it too. I've got a little server account that I use mostly for mail but I've got a stock osC installation on it to fool around with and try things out. That site's running under DirectAdmin.

 

It works fine.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Done successfully! Should note for anyone else trying to do this that you need to specify the specific folder aswell in the path.

 

Now...to test how it works?

 

 

ok...well, it seems i still have to make changes on two different folders (http & https) either i did something wrong (name = totally lost) or this is just something that doesn't work with my set up?

 

It'd be nice to just have to make changes at one location, e.g: make adjustment to my stylesheet.css in my http and have the changes affect my entire site (http & https) sections...if anyone has any other suggestions on how to accomplish this, please let me know, it'll cut my configuration time in half...literally.

Link to comment
Share on other sites

Maybe you goofed.

 

You said: "you need to specify the specific folder as well in the path."

 

I don't know what you mean because I accepted the path as presented and it's fine. The path made sense to me.

 

When you look in the "private" folder with your ftp program do you see a pseudo folder (zero bytes) named catalog? You should, my ftp program indicates symbolic links with a special icon.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Maybe you goofed.

 

You said: "you need to specify the specific folder as well in the path."

 

I don't know what you mean because I accepted the path as presented and it's fine. The path made sense to me.

 

When you look in the "private" folder with your ftp program do you see a pseudo folder (zero bytes) named catalog? You should, my ftp program indicates symbolic links with a special icon.

 

Well..what i meant is; i also accepted the path that was presented and it said it was not successful. I deleted everything and tried it again..still unsuccessful (as presented). Then i selected the 'catalog' folder in the (https://) side and it was 'successful'....when i look at my 'private' folder (i hope private mean my https:// folder) i dont see a special icon at all.

 

Does 'private folder' refer to the https folder?

Link to comment
Share on other sites

Well..what i meant is; i also accepted the path that was presented and it said it was not successful.  I deleted everything and tried it again..still unsuccessful (as presented).  Then i selected the 'catalog' folder in the (https://) side and it was 'successful'....when i look at my 'private' folder (i hope private mean my https:// folder) i dont see a special icon at all.

 

Does 'private folder' refer to the https folder?

Yep, in my case it's called private_html.

 

OK, it sounds like you created a symlink within the catalog folder already inside the private folder.

 

I had a copy of catalog in the folder before as well but I renamed it before I attempted anything. That may be why you failed, you tried to create a symlink with the same name as an existing folder and the s/w refused.

 

The link needs to be in the top level of the https folder where the catalog folder is now. So rename the existing folder and try again.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Yep, in my case it's called private_html.

 

OK, it sounds like you created a symlink within the catalog folder already inside the private folder.

 

I had a copy of catalog in the folder before as well but I renamed it before I attempted anything. That may be why you failed, you tried to create a symlink with the same name as an existing folder and the s/w refused.

 

The link needs to be in the top level of the https folder where the catalog folder is now. So rename the existing folder and try again.

 

You were exactly right, that was what the problem was...thanks a bunch...one last question, while i was in my 'twidleing around - lets see what this does" mode i created a symbolic link with another folder...my question...how do i REMOVE symbolic links?

Link to comment
Share on other sites

You were exactly right, that was what the problem was...thanks a bunch...one last question, while i was in my 'twidleing around - lets see what this does" mode i created a symbolic link with another folder...my question...how do i REMOVE symbolic links?

 

You just delete it with your ftp program like any file.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...