F
F
Fortage2019-07-04 13:51:59
Apache HTTP Server
Fortage, 2019-07-04 13:51:59

How to make the site be on an external and local Ip (apache2)?

Here I configured the config in the sites-enabled folder.

<VirtualHost *:80>
  ServerName get5.uralgamearea.ru
  ServerAdmin [email protected]
  WSGIScriptAlias / /var/www/get5-web/get5.wsgi

  <Directory /var/www/get5>
    Order deny,allow
    Allow from all
  </Directory>

  Alias /static /var/www/get5-web/get5/static
  <Directory /var/www/get5-web/get5/static>
    Order allow,deny
    Allow from all
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Previously, everything worked (I did not set it up). At the local address 192.168.103.248 from the local network, it also came to cs.uralgamearea.ru from a non-local PC. networks. Then we decided to reinstall everything. Now there is only one option. That is, if I write "ServerName get5.uralgamearea.ru" in the config, then it only enters the external interface if I write ServerName 192.168.103.248. Comes only from internal ip. How to make it so that it would be possible to enter in two ways?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-07-04
@Fortage

ServerName				get5.uralgamearea.ru
ServerAlias				192.*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question