Port Unblocking

Discussion in 'Installation/Configuration' started by leetcharmer, Jun 26, 2006.

  1. leetcharmer

    leetcharmer New Member

    I've made a server box to host websites, and it turns out that my ISP (Verizon FiOS) blocks all incoming connections on port 80. The reason behind this was to cease viruses that took control of the machine and hosted web servers. So, now they just block everyone's port 80. Anyway, I would like to know how to setup apache to get around this. If I choose another port, and set that up to go to another port -- how can I tell my domain to automatically point to that port on my IP? Thanks.
     
  2. edge

    edge Active Member Moderator

    Wow thats a 1st for me..

     
  3. leetcharmer

    leetcharmer New Member

    so ... ideas?? how do I make apache run on another port, and how do I point my domain to that new port?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You must change the Listen directive in your Apache configuration, e.g.
    Code:
    Listen 8080
    But then you must use http://www.example.com:8080 in your browser...
     
  5. leetcharmer

    leetcharmer New Member

  6. falko

    falko Super Moderator Howtoforge Staff

    No, that doesn't work.
     
  7. signature16

    signature16 New Member

    you could just host the index file some place else and then have it redirect to your server. ..kind of a lame work around
     
  8. fuziontech

    fuziontech New Member

    DynDNS

    For situations like those I use DynDNS.org They use webhop that lets you redirect a web site like www.xyzcorp.com to blah.blah.com:2313 pretty much where ever you want. I'd also suggest keeping the port you use on your server in the range of 81-85 or 8080 because proxy servers sometimes will bork at anything else if a user is behind one.
     
  9. geoffmerritt

    geoffmerritt New Member

    Changing Port 80

    I to have an ISP who blocks port 80, for those in Australia that is optusnet.....

    Anyway my work around was to change my link address to www.caboose.mine.nu:85

    As the page is only accessed by links then it doesnt matter about the added port details.

    The changes are to the file /etc/httpd/conf/httpd.conf

    Listen 85

    And to /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf hanging all the references from 80 to 85

    NameVirtualHost 192.168.0.5:85
    <VirtualHost 192.168.0.5:85>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip
    </VirtualHost>

    <VirtualHost 192.168.0.5:85>
    ServerName www.caboose.mine.nu:85
    ServerAdmin [email protected]

    Hope this helps.

    Geoff
     

Share This Page