Posts by Garsal@c.im
(DIR) Post #AiTUxroTcwQZhOZIGG by Garsal@c.im
2024-06-01T06:08:39Z
0 likes, 0 repeats
@futurebird For setting up a local website on an Intranet I can't think of a networking book that wouldn't be massively overkill, though I can still recommend something if you want. Zimmy's descriptions of IP/Ethernet/DNS are all correct but also largely concerned with serving pages over the Internet (although still more concisely explained than I could manage, and definitely worth the read).I personally would break down the problem into three parts, the web "server" itself, the content you're hosting, and then how it's reached by other users. For the web server as mentioned this will be software running on your computer, I would recommend Apache. Reason being it uses directories and .htaccess files to serve content, which I find easier to grok. Nginx would be a likely 2nd choice if you were curious. Through the .htaccess configuration you can share a directory to your intranet. Apache itself will also need to be configured, essentially your device needs to say that there's a web page to be hosted, and Apache needs to know to host it where your device says. Mac is not my area of expertise but I found this overview that touches on the important points: https://discussions.apple.com/docs/DOC-250004361The content itself will need to set up in such a way that is readable by the web server. For a static website this would likely just be an HTML file, CSS file, and possibly a JavaScript file in a folder with the .htaccess file for the web server. Lastly is how you share it with others. If you have configured your virtual host in Apache correctly (from the guide above) then those local to you should be able to see it. The only issue you may find is that you get a warning that the site is considered unsafe, because there's no SSL certificate in order to serve the web page over an encrypted connection. You could generate your own certificate to bypass this but for personal projects I never bother, personally I've found that Firefox trusts me to continue whereas Chrome just forbids it.
(DIR) Post #AnsDHq15EChZlfOUQC by Garsal@c.im
2024-11-09T17:38:53Z
0 likes, 0 repeats
@stux More hands makes less work
(DIR) Post #AtNbAaQxCgXYLAA60u by Garsal@c.im
2025-04-23T10:22:44Z
0 likes, 0 repeats
@foone just casually making the best outrun cover art nbd