HTTPD.CONF port change to 8888

Discussion in 'General' started by henkoegema, Jul 18, 2007.

  1. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    In my file /etc/httpd/conf/httpd.conf I changed port 80 to port 8888. See:

    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
    # e.g. "Listen 12.34.56.78:80"
    #
    # To allow connections to IPv6 addresses add "Listen [::]:80"
    #
    Listen 0.0.0.0:8888

    But I can't logon with http://192.168.1.100:8888 :(

    Howerver with http://192.168.1.100 I can.
    It looks like that the change didn't make any effect.
    (I also rebooted the server)
     
  2. eboza

    Joined:
    Mar 27, 2007
    Messages:
    45
    Likes Received:
    0
    I think it's a issue related to https redirection.

    Please keep in mind that http conections are redirected to https port (443). So, what port you want to change? http (80) or https (443)?

    - Edwin
     
  3. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    I want to be able to remotely logon to my Elastix server. (and my ISP blocks all port under 1024 !)

    So, is it possible to make a redirection of (external)port 8888 to internal port 443 ?

    Or can I just change port 443 to port 8888 to remotely login ?

    Tnx
    Henk
     
  4. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    I still haven't been able to login remotely. :(

    Have also installed WEBMIN, but facing the same kind of problem here too.
     
  5. eboza

    Joined:
    Mar 27, 2007
    Messages:
    45
    Likes Received:
    0
    Hi, in order to change the https port to 8888, you have to edit the "/etc/httpd/conf.d/ssl.conf" file, en change 2 lines:

    Listen 8888

    and

    <VirtualHost _default_:8888>

    Then you have to restart httpd service:

    service httpd restart

    Also, you have to point in your browser:

    https://192.168.1.100:8888/

    - Edwin
     
  6. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    Thanks Edwin for your effort to help. :lol:

    Unfortunately I can't login to Elastix anymore.
    With https://localhost:8888, I get the login screen, but my username and/or password are not recognized anymore. :(


    Henk

    Post edited by: henkoegema, at: 2007/07/21 13:00<br><br>Post edited by: henkoegema, at: 2007/07/21 13:07
     
  7. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    Please ignore my previous message.

    It works fine the way you explained. ;)

    (I made the mistake myself with the password, I thought I had changed it to my own (for admin), but I hadn't)

    Sorry for my confusion.


    Thanks again Edwin.


    Henk

    Post edited by: henkoegema, at: 2007/07/21 13:33<br><br>Post edited by: henkoegema, at: 2007/07/21 13:42
     
  8. gbarriers

    Joined:
    Jul 15, 2007
    Messages:
    3
    Likes Received:
    0
    To stop redirecting http to https you have to edit etc/httpd/conf/httpd.conf

    Search for the comment bellow (curiously in Spanish) and comment out the three lines that follow.

    # Agregado para redirigir el http a https

    # RewriteEngine On
    # RewriteCond %{HTTPS} off
    # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    Once you do that, you
     
  9. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
     

Share This Page