I can not see the site on an apache server

0

I have a problem loading my website in wordpress to an apache server on Windows with some specifications that I do not know.

The route to load the sites looks like this:

In the Apache24 folder there is a directory called htdocs (where I suppose my sites should be loaded). The specifications say that I must customize the ports for these sites as follows:

'www.sitio-uno.com.com - > 8090

www.sitio-dos.com - > 8091

www.sitio-tres.com - > 8092 '

This server does not have a host file, it only contains the link and the link

The question is, what would be the correct way to configure this server to work with the 3 sites as expected? Any tutorial known for this type of server or specifications?

*** Information, this is a virtualized server in Windows.

*** Contains Apache, php and mySql installed and running.

*** The access is given by Teamviewer and the sites are configured or loaded by means of the file transfer.

    
asked by Jean Manzo 21.01.2018 в 20:09
source

1 answer

0

The lines must be added to the file C: /WDATA/Apache24/conf/httpd.conf :

Listen 8090
Listen 8091
Listen 8092

below Listen 80 , and then add the correct directives to the end of the file C: /WDATA/Apache24/conf/Extra/httpd-vhost.conf :

<VirtualHost *:8090>
  ServerAdmin [email protected]
  DocumentRoot "c:/WDATA/Apache24/htdocs/directory1"
  ServerName domain1.com
</VirtualHost>

<VirtualHost *:8091>
  ServerAdmin [email protected]
  DocumentRoot "c:/WDATA/Apache24/htdocs/directory2"
  ServerName domain2.com
</VirtualHost>

<VirtualHost *:8092>
  ServerAdmin [email protected]
  DocumentRoot "c:/WDATA/Apache24/htdocs/directory3"
  ServerName domain3.com
</VirtualHost>

Once these changes are made, go to the file hosts and add the new domains. Finally, restart the apache server through the command by opening the Windows service console. Try accessing the routes by postponing: nro-port and you will see the filtered sites for the assigned domain.

Greetings.

    
answered by 23.01.2018 / 15:47
source