S
S
serious9112014-12-17 10:15:22
PHP
serious911, 2014-12-17 10:15:22

Webserver config?

Hello.
There is a server on DigitalOcean with a dedicated IP running Ubuntu OS. The nginx+apache+php+mysql bundle is installed on the server. At the moment, 1 domain with SSL certificate support is attached to the server.
Can you please tell me if it is possible to attach several more domains without SSL support to a server with this configuration. It is important here that only 1 domain with SSL works on 1 IP, and all the others work without SSL. If yes, then how to do it?
If necessary, I can post the nginx and apache configuration files later.
I don’t really want to experiment, since there is now a working project.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
F
FanatPHP, 2014-12-17
@FanatPHP

You can attach anything.
Hint: domains have nothing to do with protocols. The domain is bound to the IP through the name server. The web server is configured in the web server configuration. SSL is configured as an option in the web server configuration.
Throwing out your files so that an outside uncle rewrites them for you is not necessary.
If the project is working, and you are afraid of breaking it, hire a specialist. For example, ask someone who "attached" a domain with SSL support.
Do not think that a passer-by lamer from the Internet, who doesn’t give a damn about your servers and projects, will do better.

T
Timofey, 2014-12-17
@mr_T

So just safely bind these domains to the server through DigitalOcean's DNS management. Then, in the Apache settings (or Nginx, whatever you have on the front), you bind the domains to the corresponding folder on the server.
It seems that there should not be any difficulties, and it’s also difficult to break something here.

A
Antony Ryabov, 2014-12-17
@tonymadbrain

Firstly, you need to stop using Apache, and secondly, read the documentation for beginners on nginx.org. Third, come back here when there are specific questions.

E
Ergil Osin, 2014-12-17
@Ernillew

1. Throw Apache in the trash.
2. Yes, it can be done.
Call a specialist, they will work for an hour or two, $20-$40, and everything will work for you.

E
ehrich, 2014-12-17
@ehrich

I have Vesta Control Panel on my server. It is very convenient to work with domains, mail, cron, database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question