Temporary test domain name or way to achieve this
I created a multi install with a single website and was able to do that because there was a working IP address.
Now I have 1 site there however I can’t use the ip address (or can I) to go to the NEW folder for the new site to test.
In previous hosting scenarios I was able to turn on what was called a testing url which gave access to a folder. I tried this in my sites-available block..
rewrite ^caribbean-diving.com/newsite$ var/www/newsite.com redirect;
This didn’t work as the old site just 404’d
I have also tried to edit the /sites-available/digitalocean file which as I understand is the default from my one click install of LEMP. So I thought this could be the file the dedicated IP address could root through first…so I pointed the root directive to my new sites folder of that but it didn’t do anything and I still get to my initial website.
How to achieve this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.