SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    $books++ == true matsko's Avatar
    Join Date
    Sep 2004
    Location
    Toronto
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using the HTTPS port or something else for port 80

    My method of developing websites involves separating static and dynamic content to be delivered from different daemon servers ... its a performance enhancement - plus you can always optimize each daemon for the content that it will provide (ex. set keepAlive to off for WWW and keep it on for static).

    So PHP gets loaded from WWW (or the domain alone) and anything static comes from static.website.com.

    It works, but when I'm loading static content with AJAX then the browser (pretty much any browser) will trigger a security error because it sees it as a different domain. This also is an issue for CSS behaviours (htc files) and dynamic scripts (creating <script> tags).

    Well, I guess one solution is to use the same domain, but change the port to something else other than port 80.

    website.com:8080/static_content/file.css

    This also works, but I'm just wondering if anything other than port 80 will be accepted? You never know if a particular school or institution will block anything else for HTTP other than port 80.

    Is this true, or can I comfortably use port 8080?

    Also, what about if I use the HTTPS port (port 443)? What happens if the daemon listening on that port doesn't have SSL enabled?

    What other options/ports can I use?
    I can't believe I ate the whole thing

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The ports below 1000 all have special meanings and so you can't use port 443 for anything other than when SSL is enabled. That's why most sites needing an alternate port for HTTP use 8080.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    $books++ == true matsko's Avatar
    Join Date
    Sep 2004
    Location
    Toronto
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    That's why most sites needing an alternate port for HTTP use 8080.
    But is any port above 1000 (probilly 1024) a safe bet for a http alternative? Or are there some common firewall settings out there that will block it?
    I can't believe I ate the whole thing


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •