Answer the question
In order to leave comments, you need to log in
How to set up a website on debian without a domain?
Good time!
The guys have a small LAN, where there are about 10 computers. One is debian with all the settings for the site.
The debian machine is fully configured and working. There is a connection through external and internal IP.
There is a subdomain to which the IP of the computer is assigned as a DNS server.
The question is how to configure the site itself to open by IP?
that is, instead of It works! to open the index page of the site (/var/www/sitename)
In which direction to dig?
Karoch mysql is restored from a backup, it works for a while, then it crashes
Answer the question
In order to leave comments, you need to log in
make sure that the site opens at any address, you need to put it in the folder with the default site, this is in /var/www
- all requests that were not in any virtual host fall here, in other words, the local dev is zero. for requests of sites that Apache did not find. Therefore, in any case, he will bar him from here. Regardless of what name you call it or by IP.
if you need to change the current location, then
change
it throughout the config, and that's it.
Well, or create a full-fledged virtual host. <VirtualHost 111.1111.111.111:80>
and further down the list
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question