Questions Installing apache web server in linux mint

eyepea

Active member
  • May 9, 2009
    696
    154
    43
    මට linux mint computer එකක apache web server install කිරීමට අවශ්‍යයි.
    local use සඳහා පමණි.
    http port සහ https port 80 සහ 443 වෙනස් කරනවා..
    http port එක 81 ට වෙනස් කළා කියමු.
    http://localhost:81/........ කියලා web server එක access කරනවා..
    Firewall එක තියන නිසා, web server එකට පිටින් connect වෙන්න බෑ නේද?

    මට webserver setup, network security ගැන වැඩි අදහසක් නෑ .
    මට ඕනේ server side scripting ටිකක් ඉගෙනගන්න. :yes:

    ස්තුතියි!

    -----------------------------------

    I want to install apache web server in a computer running linux mint. For local use only.
    I will change the http port and the https port to something different from 80 and 443 to avoid any confusion.
    Lets say I changed the http port to 81.
    I will access the web server using http://localhost:81/........
    Since the firewall is there, can I assume that I am safe from any possible external connection to this web server?

    I have little idea about setting up web servers and network security. I just want to learn some server side scripting :yes:

    Thanks!
     

    Sonique

    Well-known member
  • Oct 22, 2007
    25,136
    11,141
    113
    Forest
    read about wsgi
    apache will handle request coming from port 80, 443 and redirect it to proper applications.
    No need to worry about ports
    you just have to learn how to config apache and apache will run servers automatically.
    I have done it for Django and my friend did config it for ROR
    It's basically the same. Nothing too technical unless you are hosting online.
    Config with SSL took some time

    Since the firewall is there, can I assume that I am safe from any possible external connection to this web server?
    Network security is not decided solely on firewall restrictions. Your html, javascripts, databases, backend can be hacked even with a proper firewall installed. Stop worrying about it for now. If you want to be worried then worry about SSH settings.
     
    Last edited:

    eyepea

    Active member
  • May 9, 2009
    696
    154
    43
    read about wsgi
    apache will handle request coming from port 80, 443 and redirect it to proper applications.
    No need to worry about ports
    you just have to learn how to config apache and apache will run servers automatically.
    I have done it for Django and my friend did config it for ROR
    It's basically the same. Nothing too technical unless you are hosting online.
    Config with SSL took some time

    Since the firewall is there, can I assume that I am safe from any possible external connection to this web server?
    Network security is not decided solely on firewall restrictions. Your html, javascripts, databases, backend can be hacked even with a proper firewall installed. Stop worrying about it for now. If you want to be worried then worry about SSH settings.
    Thanks. Quite a bit of information, some of which were new to me.
    ok I will check on it.

    thanks
    ------ Post added on Feb 5, 2023 at 3:09 PM
     

    Don GasCan

    Well-known member
  • Nov 3, 2010
    42,489
    48,717
    113
    සේදවත්ත
    අනේ chatgpt එකෙන් බෑශ් එකක් ලියාගෙන එක්සිකුට් කරගනින් බන්.

    ඉතින් ෆයර් වෝල් එක ඩුවුන් ද අප් ද බලහන්

    උබේ ඇපාචිය අප් කරලා පෝට් එක grep කරපන් කෝ එක්කෝ සවිස් එක
     
    • Like
    Reactions: eyepea

    eyepea

    Active member
  • May 9, 2009
    696
    154
    43
    අනේ chatgpt එකෙන් බෑශ් එකක් ලියාගෙන එක්සිකුට් කරගනින් බන්.
    ඉතින් ෆයර් වෝල් එක ඩුවුන් ද අප් ද බලහන්
    උබේ ඇපාචිය අප් කරලා පෝට් එක grep කරපන් කෝ එක්කෝ සවිස් එක
    -----
    thanks.
    :D chatGPT. ow ekath try karala balanna puluwan.
    Firewall up.
     

    Don GasCan

    Well-known member
  • Nov 3, 2010
    42,489
    48,717
    113
    සේදවත්ත
    අනේ chatgpt එකෙන් බෑශ් එකක් ලියාගෙන එක්සිකුට් කරගනින් බන්.
    ඉතින් ෆයර් වෝල් එක ඩුවුන් ද අප් ද බලහන්
    උබේ ඇපාචිය අප් කරලා පෝට් එක grep කරපන් කෝ එක්කෝ සවිස් එක
    -----
    thanks.
    :D chatGPT. ow ekath try karala balanna puluwan.
    Firewall up.
    ෆයර් වෝල් අප් නම් ip tables වලින් පෝට් එක ඕපන් කරන්න
     
    • Like
    Reactions: eyepea

    eyepea

    Active member
  • May 9, 2009
    696
    154
    43
    ෆයර් වෝල් අප් නම් ip tables වලින් පෝට් එක ඕපන් කරන්න
    thanks. firewall eka iptables use karanawa. Meka 1 computer ekak internet ekata connect karala. Web server eka local access withary for leaning. I will check.

    https://community.linuxmint.com/tutorial/view/486

    Pm
    ------ Post added on Feb 6, 2023 at 5:26 AM
    thanks. saw link post. useful.
    ------ Post added on Feb 7, 2023 at 1:32 AM
     
    Last edited:
    • Like
    Reactions: Rowdy Baby