I want to run a Vhost on XAMPP but redirecting to port :8080. The issue here is that i have IIS running on port :80 and Apache on port :8080 and those are my config files to try to run my proyect on a virtual host:
hosts file
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 www.goviaje.com
httpd-vhosts.conf
# 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 *:8080
#
# 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 webmaster@dummy-host2.example.com
##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
##</VirtualHost>
<VirtualHost *:8080>
ServerAdmin localhost:8080
DocumentRoot "C:/xampp/htdocs"
ServerName localhost:8080
</VirtualHost>
<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/goviaje/"
ServerName www.goviaje.com:8080
ServerAlias goviaje.com:8080
<Directory "C:/xampp/htdocs/goviaje">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
All the necesary modules in httpd.conf are enabled
Ok, when i type "www.goviaje.com" in my browser, it send me to IIS main page (localhost:80) and i need go to localhost:8080/goviaje/
Can somebody help me?