rechtstexte für onlineshop
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: ANLEITUNG: Installation mit SSL Proxy

    derWolli

    • Neu im Forum
    • Beiträge: 11
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #60 am: 14. Juni 2010, 15:15:37
    Poste mal bitte den Inhalt deiner index.html aus deinem Template.

    Grüße

    Torsten

    Hallo Torsten,

    vielen dank im Voraus, dass Du Dich meinem Problem annimmst. Hier meine index-Datei.

    Code: PHP  [Auswählen]
    include ('includes/application_top.php');

    // create smarty elements

    $smarty = new Smarty;

    // include boxes
    require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');

    // the following cPath references come from application_top.php
    $category_depth = 'top';
    if (isset ($cPath) && xtc_not_null($cPath)) {
            $categories_products_query = "select count(*) as total from ".TABLE_PRODUCTS_TO_CATEGORIES." where categories_id = '".$current_category_id."'";
            $categories_products_query = xtDBquery($categories_products_query);
            $cateqories_products = xtc_db_fetch_array($categories_products_query, true);
            if ($cateqories_products['total']> 0) {
                    $category_depth = 'products'; // display products
            } else {
                    $category_parent_query = "select count(*) as total from ".TABLE_CATEGORIES." where parent_id = '".$current_category_id."'";
                    $category_parent_query = xtDBquery($category_parent_query);
                    $category_parent = xtc_db_fetch_array($category_parent_query, true);
                    if ($category_parent['total']> 0) {
                            $category_depth = 'nested'; // navigate through the categories
                    } else {
                            $category_depth = 'products'; // category has no products, but display the 'no products' message
                    }
            }
    }

    require (DIR_WS_INCLUDES.'header.php');

    include (DIR_WS_MODULES.'default.php');
    $smarty->assign('language', $_SESSION['language']);

    $smarty->caching = 0;
    if (!defined(RM))
            $smarty->load_filter('output', 'note');
    $smarty->display(CURRENT_TEMPLATE.'/index.html');

    include ('includes/application_bottom.php');
    ?>
     
    Ich benutze das xtc5 Template, also Standard.

    Viele Grüße
    Wolli

    Marktplatz - Eine große Auswahl an neuen und hilfreichen Modulen sowie modernen Templates für die modified eCommerce Shopsoftware

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #61 am: 14. Juni 2010, 15:23:58
    Das ist die index.php, ich brauche aber die index.html aus dem Template.

    Grüße

    Torsten

    derWolli

    • Neu im Forum
    • Beiträge: 11
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #62 am: 14. Juni 2010, 15:28:57
    Das ist die index.php, ich brauche aber die index.html aus dem Template.

    Grüße

    Torsten

    Sorry, dass ich so ein Anfänger bin, arbeite mich gerade ein. In meinem Template ist die Index-html Datei mit dem Firefox Symbol hinterlegt, meinst Du die?

    Grüße
    Wolli

    Martina

    • Mitglied
    • Beiträge: 160
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #63 am: 17. Juni 2010, 10:15:03
    bei mir stimmt auch etwas nicht, finde den Fehler aber nicht

    Mag mal jemand schauen
    zum shop

    bei mir werden unsichere Elemnte angezeigt :nixweiss:

    Viol

    • Fördermitglied
    • Beiträge: 2.279
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #64 am: 17. Juni 2010, 10:25:50
    bei mir stimmt auch etwas nicht, finde den Fehler aber nicht

    Mag mal jemand schauen
    zum shop

    bei mir werden unsichere Elemnte angezeigt :nixweiss:

    Hallo,
    keines der Bilder laufen über den SSL Proxy.Sie werden alle über http aufgerufen.
    Hast Du die Anpassungen alle entsprechend der Anleitung durchgeführt?

    derWolli

    • Neu im Forum
    • Beiträge: 11
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #65 am: 17. Juni 2010, 10:29:21
    Das ist die index.php, ich brauche aber die index.html aus dem Template.

    Grüße

    Torsten

    Hier mal die index.html aus dem Template. Hoffe jemand findet den Fehler.

    Vielen Dank für Eure Hilfe

    derWolli

    • Neu im Forum
    • Beiträge: 11
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #66 am: 17. Juni 2010, 10:30:13
    Ups....die Datei noch:

    Code: PHP  [Auswählen]
    <div id="header">
            <div id="logo"><img src="{$tpl_path}img/spacer.gif" width="400" alt="{$store_name}" /></div>
            <div id="search">{$box_SEARCH}</div>
        </div>
        <div id="topmenuwrap">
            <ul id="topmenu">
                <li><a href="{$index}">{#link_index#}</a></li>
               <li><a href="{$cart}">{#link_cart#}</a></li>
               {if $account}
                <li><a href="{$account}">{#link_account#}</a></li>
               {/if}
                {if $smarty.session.customers_status.customers_status_id == '1'}
                <li><a href="{php}echo xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL');{/php}">{#new_customer#}</a></li>
               {/if}
                <li><a href="{$checkout}">{#link_checkout#}</a></li>
               {if $smarty.session.customer_id}
                <li><a href="{$logoff}">{#link_logoff#}</a></li>
               {else}
                <li><a href="{$login}">{#link_login#}</a></li>
               {/if}
            </ul>
            <div id="languages">{$box_LANGUAGES}</div>
        </div>
        <div id="breadcrumb">{$navtrail}</div>
        <div id="contentwrap"> {if !strstr ($smarty.server.PHP_SELF, 'checkout')}
            <div id="leftcol">{$box_CATEGORIES}{$box_ADD_QUICKIE}{$box_CONTENT}{$box_INFORMATION}{$box_LAST_VIEWED}{$box_REVIEWS}{$box_SPECIALS}{$box_WHATSNEW}</div>
            {/if}
            <div
                    {if !strstr ($smarty.server.PHP_SELF, 'checkout')}
                            id="content"
                    {else}
                            id="contentfull"
                    {/if}
                    >
            {$main_content}</div>
        {if !strstr ($smarty.server.PHP_SELF, 'checkout')}
        <div id="rightcol">{$box_CART}{$box_LOGIN}{$box_ADMIN}{$box_NEWSLETTER}{$box_BESTSELLERS}{$box_INFOBOX}{$box_CURRENCIES}{$box_MANUFACTURERS_INFO}{$box_MANUFACTURERS}</div>
        {/if} </div>
    <p class="footer">{$smarty.const.TITLE} © {$smarty.now|date_format:"%Y"} | Template © 2009 by modified eCommerce Shopsoftware eCommerce Shopsoftware</p>
    </div>

    Martina

    • Mitglied
    • Beiträge: 160
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #67 am: 17. Juni 2010, 10:46:33
    du meinst diese Anleitung
    Zitat
    Hier muss man aufpassen, wenn Bilder einfügt werden. Es muss der absolute Pfad verwendet wer-den, z.B. /var/www/shop/bilder/foto.jpg und nicht http://www.domain.de/shop/bilder/foto.jpg).
    Ab Besten erstellt man für zusätzliche Bilder ein neues Unterverzeichnis und fügt dort die eigenen Bilder ein. Somit greift der Root auf dem Webserver nun unabhängig auf http und https zu. Danach sollte die Meldung mit den „unsicheren Objekten“ verschwunden sein.

    muss ich jetzt über den shop verzeichnis einen ordner var anlegen und dort den ordner images rein kopieren?

    Muss ich dann alle Bilder neu verlinken?

    Viol

    • Fördermitglied
    • Beiträge: 2.279
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #68 am: 17. Juni 2010, 11:12:27

    muss ich jetzt über den shop verzeichnis einen ordner var anlegen und dort den ordner images rein kopieren?

    Muss ich dann alle Bilder neu verlinken?????

    du meinst diese Anleitung
    Zitat
    Hier muss man aufpassen, wenn Bilder einfügt werden. Es muss der absolute Pfad verwendet wer-den, z.B. /var/www/shop/bilder/foto.jpg und nicht http://www.domain.de/shop/bilder/foto.jpg).
    Ab Besten erstellt man für zusätzliche Bilder ein neues Unterverzeichnis und fügt dort die eigenen Bilder ein. Somit greift der Root auf dem Webserver nun unabhängig auf http und https zu. Danach sollte die Meldung mit den „unsicheren Objekten“ verschwunden sein.

    Hallo, nein den Ordner var musst Du nicht anlegen, den gibt es schon servertechnisch. Ich vermute du hast die Confíg Dateien nicht richtig angepasst, da ja alle Bilder über http und nicht über https laufen. Es darf kein http://www.foto-fun-box.com vorkommen
    Du musst sicher nicht alle Bilder neu verlinken s.o.
    Zum Unterschied relativer Link sieh mal hier: http://webmaster.multimania.de/topics/technic/html/html-workshop2/2/

    Martina

    • Mitglied
    • Beiträge: 160
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #69 am: 17. Juni 2010, 12:58:42
    ich bin bei all-inkl.

    Code: PHP  [Auswählen]
    define('HTTP_SERVER', 'http://www.foto-fun-box.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://ssl-account.com/foto-fun-box.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', 'true'); // sicheren Webserver während des Bestellprozesses?
     

    Viol

    • Fördermitglied
    • Beiträge: 2.279
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #70 am: 17. Juni 2010, 14:05:33
    ich bin bei all-inkl.

    Code: PHP  [Auswählen]
    define('HTTP_SERVER', 'http://www.foto-fun-box.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://ssl-account.com/foto-fun-box.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', 'true'); // sicheren Webserver während des Bestellprozesses?
     
    Hallo,
    ich weiß es nicht genau, aber Dein Shop liegt ja im Unterordner /shop.
    Hast Du eine Umleitung eingebaut?
    Andernfalls müsste, wenn ich es richtig sehe, der Unterordner /shop in die Configure.php Dateien eingebaut werden.

    Martina

    • Mitglied
    • Beiträge: 160
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #71 am: 17. Juni 2010, 14:55:26
    du meinst es so

    Code: PHP  [Auswählen]
    define('HTTP_SERVER', 'http://www.foto-fun-box.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://ssl-account.com/foto-fun-box.com/shop'); // eg,
     
    Das geht gar nicht

    ich denke es liegt einfach daran
    Zitat
    Hier muss man aufpassen, wenn Bilder einfügt werden. Es muss der absolute Pfad verwendet wer-den, z.B. /var/www/shop/bilder/foto.jpg und nicht http://www.domain.de/shop/bilder/foto.jpg).
    Ab Besten erstellt man für zusätzliche Bilder ein neues Unterverzeichnis und fügt dort die eigenen Bilder ein. Somit greift der Root auf dem Webserver nun unabhängig auf http und https zu. Danach sollte die Meldung mit den „unsicheren Objekten“ verschwunden sein.

    aber ich komme da einfach nicht weiter :oops:

    Viol

    • Fördermitglied
    • Beiträge: 2.279
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #72 am: 17. Juni 2010, 15:52:27
    Hallo,
    klicke doch einfach mal auf die Links aus Deinen obigen PHP-Codes:
    beim ersten Beitrag (Beitrag 62394) Http Server gibt es eine forbidden Seite bei beiden Links
    Bei Deinem letzten geänderten Beispiel wird man immerhin beim SSL Eintrag auf die Shopseite ohne Proxy umgeleitet.
    Hast Du in deiner htacess Umleitungen eingebaut?

    Martina

    • Mitglied
    • Beiträge: 160
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #73 am: 17. Juni 2010, 16:09:36
    nicht, dass ich wüsste
    # $Id: .htaccess,v 1.5 2005/05/19 17:09:19 Administrator Exp $
    #
    # If your shop runs in a subfolder, for example "www.domain.de/shop/"
    # you can use this .htaccess as a template.
    # Simply search and replace "/xtc_mod/" with the folder-name of your
    # custom installation-folder like "/shop/" or something.
    #
    # Attention: Leave the slashes "/" as is!
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    #<Directory "/usr/local/apache/htdocs">
    #   AllowOverride Options
    #</Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    <IfModule mod_setenvif.c>
      <IfDefine SSL>
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
      </IfDefine>
    </IfModule>

    # Fix certain PHP values
    # (commented out by default to prevent errors occuring on certain
    # servers)
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>

    #-- Call time pass reference error ?!
    #php_flag  allow_call_time_pass_reference On

    #-----------------------------------------
    #- SEO Hartmut König
    #-----------------------------------------
    #-- ! Comment this line, if you get an ERROR 500 !
    #Options +FollowSymlinks

    # http://httpd.apache.org/docs/misc/rewriteguide.html
    RewriteEngine on

    #-- Sitemap
    RewriteRule ^sitemap(.*)\.html$ /shop/shop_content.php?coID=8 [qsappend,L]

    ##-- Kategorien
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ /shop/index.php?cPath=$2&page=$3 [qsappend,L]
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+)\.html$ /shop/index.php?cPath=$2 [qsappend,L]

    ##-- Produkte
    RewriteRule (.*)::(.+)\.html$ /shop/product_info.php?products_id=$2 [qsappend,L]

    ##-- Content
    RewriteRule (.*):_:([0-9]+)\.html$ /shop/shop_content.php?coID=$2 [qsappend,L]

    ##-- Manufacturers
    RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
    RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ /shop/index.php?manufacturers_id=$2&page=$3 [qsappend,L]
    RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
    RewriteRule (.*):.:([0-9]+)\.html$ /shop/index.php?manufacturers_id=$2 [qsappend,L]

    ##-- Fehlerseiten auf die Sitemap lotsen
    ErrorDocument 400 /shop/sitemap.html?error=400
    ErrorDocument 401 /shop/sitemap.html?error=401
    ErrorDocument 402 /shop/sitemap.html?error=402
    ErrorDocument 403 /shop/sitemap.html?error=403
    ErrorDocument 404 /shop/sitemap.html?error=404
    ErrorDocument 500 /shop/sitemap.html?error=500

    ##-- BOF - Tomcraft - 2009-09-09 - Use canonical URLs
    # (don't use if your shop runs on a subdomain!)
    #
    #RewriteCond %{HTTP_HOST} !^www\. [NC]
    #RewriteCond %{REMOTE_ADDR} !^85.13.128.137 [NC]
    #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/shop/$1 [L,R=301]
    #
    ##-- EOF - Tomcraft - 2009-09-09 - Use canonical URLs

    web28

    • modified Team
    • Beiträge: 9.404
    Re: ANLEITUNG: Installation mit SSL Proxy
    Antwort #74 am: 17. Juni 2010, 17:53:54
    Die Config Dateien und die htaccess waren richtig.

    Normalerweise werden bei solchen Fehlern nur ein paar Objekte angemeckert.

    Bei Dir aber fast alles!

    Hast Du Dich an diese Anleitung gehalten? -> ANLEITUNG: Installation mit SSL Proxy

    Wenn nein, dann machen.

    Dann das Standard xtc5 template mal aktivieren und damit testen.

    Gruss Web28

    Trade Republic - Provisionsfrei Aktien handeln
               
    anything