Link to home
Start Free TrialLog in
Avatar of Ray Padilla
Ray PadillaFlag for United States of America

asked on

Xampp on Server 2008 not accessible from outside

I have installed xampp (orangeHRM) to run the OrangeHRm software. I currently have it running fine and accessible from my test machine (windows 7 pro) I can access from externally www.orangehrm.mywebsite.com not issues. So I exported the db and set it up on the server internally I can reach it  192.168.2.19/login.php no problem and the imported DB all the data is showing up perfectly, now I want to access it from www.IPAddress/orangeHRM but I cannot, I am getting no errors it just won't resolve from the server. Once I get it to resolve with the IP address then I will change the DNS to point to the new IP address. Below is the vhost file :

#
# Virtual Hosts
#
# 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.2/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 postmaster@dummy-host2.localhost
    DocumentRoot "C:\Program Files (x86)\OrangeHRM\2.6.5\htdocs\orangehrm-2.6.5"
    ##ServerName dummy-host.localhost
    ##ServerAlias www.dummy-host2.localhost
    ##ErrorLog "logs/dummy-host2.localhost-error.log"
    ##CustomLog "logs/dummy-host2.localhost-access.log" combined
</VirtualHost>
##<VirtualHost *:80>
    ##ServerAdmin postmaster@dummy-host.localhost
    ##DocumentRoot "/xampp/htdocs/dummy-host.localhost"
    ##ServerName dummy-host.localhost
    ##ServerAlias www.dummy-host.localhost
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
##</VirtualHost>

##<VirtualHost *:80>
    ##ServerAdmin postmaster@dummy-host2.localhost
    ##DocumentRoot "/xampp/htdocs/dummy-host2.localhost"
    ##ServerName dummy-host2.localhost
    ##ServerAlias www.dummy-host2.localhost
    ##ErrorLog "logs/dummy-host2.localhost-error.log"
    ##CustomLog "logs/dummy-host2.localhost-access.log" combined
##</VirtualHost>
Avatar of achaldave
achaldave
Flag of United States of America image

try ipaddress/orangeHRM instead of www.ipaddress
Resolving like "www.IPAddress", e.g. "www.192.168.2.19", is not valid - you either use a fully qualified domain name (which will be resolved into an IP Address by your DNS server), or you use an IP address directly, you can't mix the two.

If you must have a name and you don't have a DNS server you can easily configure, you can temporarily edit your hosts file so that "www.somehostname" resolves to your IP address, and proceed from there.
Avatar of Ray Padilla

ASKER

I would of course use the external IP address not the internal which is how I tested my setup on the dev server which is actually working. I first tested it with the external IP it worked then i pointed my DNS to that I P and it resolved no problem. I just can't make it work from the server 2008. The changes I made on the dev were very simple, I've tried all of that on the server and none of the changes work. Not sure if it's the Vhost file. I did have IIS running and it would resolve to the IIS default page if I just put the external IP of the server on the browser but once i changed it to Apache it is not resolving to port 80 or any port for that matter.
ASKER CERTIFIED SOLUTION
Avatar of Frosty555
Frosty555
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Funny thing is that I can access port 80 via IIS and connect to the default IIS page. I turn IIS off and turn apache on but I get no access. I can access locally i.e. Localhost or the internal IP but just can't get to connect. I've double checked my forwarding on the router and the firewall settings. Kinda stuck.
Had to create a rule for the Apache HTTPD and it allowed me in. Great Job Thanks! Seems the WWW rule that is generically made is not enough.