application, by default in the local apache host

0

I want to open an application that I have stored in the htdocs folder of xampp, the problem is that when starting the localhost, it does not open xampp but an application Stats but it is not the one that I want to visualize, as if it were configured by default, then when I put the name of the one I want to see (WFReporting), he tells me that he did not find it since he is looking for it in the Stats folder.

As you can see the application Stats opens only with type localhost, I do not understand that if it is stored in htdocs just like all, the application that I want to open is called WFReporting and to say it after local host, this error comes out.

that is to say it looks for it in the folder of Stats, how can I make it to differentiate the applications, that is to say that it only opens the application if I write this in the url:

to open Stats like this: localhost: 8080 / Stats

to open WFReporting like this: localhost: 8080 / WFReporting

this is the code of my apache httpd-vhosts file

ruta : C:\xampp\apache\conf\extra\httpd-vhosts

# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry 
 about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ##ServerName or ##ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
##ServerAdmin [email protected]
##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"
##ServerName dummy-host.example.com
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
##</VirtualHost>

##ServerAdmin [email protected]
##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
##ServerName dummy-host2.example.com
##ErrorLog "logs/dummy-host2.example.com-error.log"
##CustomLog "logs/dummy-host2.example.com-access.log" common

    
asked by user85412 02.05.2018 в 17:55
source

1 answer

0

It seems that your problem is in the configuration file of the apache vhost: C:\xampp\apache\conf\extra\httpd-vhosts.conf

Check the configuration you have in that file for your applications. Surely it would be good to put what you have inside that file here to check it but to get it out as you say, you should put something like this:

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/Stats"
    ServerName stats
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/WFReporting"
    ServerName reporting
</VirtualHost>
    
answered by 02.05.2018 в 18:04