apache rewrite to apache-ssl

Discussion in 'Server Operation' started by gabrix, Nov 11, 2006.

  1. gabrix

    gabrix New Member

    I have configured 2 apache,1 in http and mod_rewrite directive placed in the tor.gabrix VirtualHost the other one is an apache-ssl.Both apache are configured with minimum starting servers (1) to save cpu cicles and they share same DocumentRoot,all because i don't want to force users to write down a "complicated" https://tor.gabrix.ath.cx but a tor.gabrix.ath.cx and be in https, is this right ?
    Now when i connect to http://tor.gabrix.ath.cx i get rewrited to https but page loading is really slow and when complete the template ends up unfinished with a white background color and bits and peaces missing .i want you to give a try tor.gabrix.ath.cx.Do you think i better use mod rewrite in joomla htaccess.txt?and how?
    my VirtualHost conf:
    Code:
    NameVirtualHost 192.168.1.6:80
    
    <VirtualHost 192.168.1.6:80>
         ServerName tor.gabrix.ath.cx
         ServerAlias www.tor.gabrix.ath.cx
         ServerAdmin [email protected]
         DocumentRoot /var/www/torgab
         ErrorLog /var/log/apache/tor_error.log
         TransferLog /var/log/apache/tor_access.log
         RewriteEngine On
         Options +FollowSymlinks
         RewriteCond   %{SERVER_PORT}  !^443$
         RewriteRule /.* https://tor.gabrix.ath.cx/ [R]
         RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
         RewriteRule .* - [F]
    </VirtualHost>
    I hope i was enough clear thanks ! :eek:
     
    Last edited: Nov 11, 2006
  2. falko

    falko Super Moderator Howtoforge Staff

    Basically the page is loading fine, but something seems to be missing because whenever I load the page it starts loading, then a pop-up comes up asking me whether I want to start a dial-up modem connection (there must be some element that cannot be found, therefore the pop-up comes up). I click on "Cancel", and the rest loads fine. I think you must find this missing element first before you do anything else.
     
  3. gabrix

    gabrix New Member

    What ???
    Sure???
    You are the first person saying this !
    I don't really see where a modem connection can be on my network ....
    Would you have an another try ? Please !
     
  4. falko

    falko Super Moderator Howtoforge Staff

    No, no modem connection on your network.
    I'm using a laptop with an integrated modem. Normally I use DSL over my laptop's ethernet port, but I have also configured a modem connection so I can have internet when I'm away from home or my office.
    Now I'm using my DSL connection, but whenever it tries to load something it cannot find my laptop asks me if I want to use the modem connection (because it seems to think I'm offline). The same happens when I visit your web site. There seems to be something that cannot be found.
     
  5. gabrix

    gabrix New Member

    It sounds like you laptop problem ... anyway did you have an another go on my site .. does it happen still ?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    No, it is _definitely_ not a problem with my laptop. As I told you above, there seems to be something missing on your site.
     
  7. gabrix

    gabrix New Member

    ... something like ?
    The only thing i can i can think of it is a joomla module maybe !I should try myself from a host outside my lan , a laptop host and a modem connection, and it does happen still , doesn'it ?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Yes, it's still happening. Here's a screenshot:
     

    Attached Files:

  9. gabrix

    gabrix New Member

    Nice screenshots , what's the same program but for Debian ?
    ... it is still happening and the page loading is really slow.
    Is it because i have a dynamic ip ?
    At the tor irc chat a guy said page loading is slow because dynamic ips ???
    It sound to me false !
     
  10. falko

    falko Super Moderator Howtoforge Staff

    No. Please visit your web site in a bowser, then have a look at the source code in your browser and try to find out what your browser is trying to load (images, scripts, css files, etc.). One of these objects is missing.
     
  11. gabrix

    gabrix New Member

    I don't know php or css (a little of html) that well to do that !Would you have a look at it ?
     
    Last edited: Nov 17, 2006
  12. mudder-board

    mudder-board New Member

    Gabrix,
    you must have fixed your issue, both links loaded fine for me. Why not post your solution to benefit others
     
  13. gabrix

    gabrix New Member

    Well,in first place my issue was i wanted https for users registering to my site (would yu try that?!)for the falko laptop issue i didn't do anything cause i couldn't figure out what the problem was,thank you anyway you are all great persons!
     

Share This Page