Host your website on your own server?

Good day,

I have a problem. I want to use my rented server to host a website with Apache/httpd. I already have httpd installed, and I want to host my website on it, but I don't know how, and I can't find any instructions for doing so.

Thank you very much for your help in advance!

Best regards, Tobias

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
18 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
mompf03231
1 year ago

80 is the standard HTTP port if you don’t get the free host the website on another port. then blur NGINX Reverse Proxy Manager as Docker Container. The server address is simply your server IP, then use the correct port. Create a DNS entry with your DNS host (A type) with the server IP (if your DNS provider uses a proxy first)

But would always host static sites with cloudflare pages, Vercel or Netlify. Or even AWS Amplify. Is much more practical and more you do not need if the content is not dynamic. VPS only for Backend

mompf03231
1 year ago

Sure. Here is a brief explanation if you only use cloudflare as a DNS and the website remains on the server:

NGINX Proxy Manager (NPM) can issue SSL certificates with Let’s encrypt. This is only possible if your server can be reached directly on its own IP by Let’s Encrypt. Cloudflare changes the address in the DNS entry from your own to the address from its servers. So if you want to use SSL, it’s like this:

  1. Create the A Record/CNAME Record in Cloudflare with an off proxy (must be gray, orange is called proxied).
  2. Click SSL in NPM for the proxy entry, then apply for certificate. It takes a few seconds.
  3. If this has worked, you can convert to proxy with cloudflare when DNS entry of non-Proxy and then all SSL is encrypted and you have DDoS protection, DNS lamination etc. Only in this order

But as said, hosting static sites is simple and free from the above providers, all that goes beyond that I would run into Docker containers to protect the system, and just behind cloudflare

ntechde
1 year ago

Apparently, there’s already a process that listens to Port 80.

The sites-enabled/ …. file should be set correctly. There seems a lot to be missing.

Fab1anDev
1 year ago

Look what goes on port 80: lsof -i:80

and then pkill {The process name zb Nginx}

ntechde
1 year ago

Then there’s something going on

ntechde
1 year ago

It may be the fastest.

You should choose a web server, nginx or apache and then configure it properly and in peace.

ntechde
1 year ago

Read your web server alone, you don’t do it in a quarter of an hour!

Sparrow75
1 year ago

Does the Apache Server ever run?

Tests

systemctl start apache2.service

Sparrow75
1 year ago

then I would install it

sudo apt install apache2

then also running the webserver

Sparrow75
1 year ago

What’s on the Linux Distro server?