xampp and joomla installation problem on intranet

Problems with the Windows version of XAMPP, questions, comments, and anything related.

xampp and joomla installation problem on intranet

Postby hobbel » 29. December 2010 00:56

i've set up xammp and joomla on a virtual server, the site's name is work.online.
I can acces the site on the virtual server through ip adress and trough http://work.online/.
in folder windows/system32/drivers/etc/hosts i've added : 127.0.0.1 work.online
in httpd-vhosts.conf under apache/config/extra/ i've added this:

NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
DocumentRoot d:/Xampp/xampp/htdocs/
ServerName localhost
</VirtualHost>

<VirtualHost work.online>
DocumentRoot "d:\xampp\xampp\htdocs\joomla16"
ServerName work.online

<Directory "d:\xampp\xampp\htdocs\joomla16">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

but when i connect from another pc in the office i can only connect through the ipadress 172.16.186.118 to the website.
if i enter http://work.online/ it shows up that's forbidden to access this page.

is this a port problem or is there something i must change on the virtual server ( running w2003)?
i've heard changing it to port 8080 can make it work , but i don't know if this is going to work? and wich files i've to change?
is there a simple solution?
the site must only work on the intranet , internal cms.
i will create a copy later that will run from cd for outside users who work for the company, but all must be CMS


i hope some can help me,

thanks and the best wishes :wink:
hobbel
 
Posts: 4
Joined: 29. December 2010 00:34

Re: xampp and joomla installation problem on intranet

Postby Sharley » 29. December 2010 04:18

It seems you may be mixing things up a bit - Name based and IP based VirtualHosts without telling Apache that this is what you want to do.

Try this and maybe you don't need to mix things.

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "D:/xampp/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "D:/xampp/xampp/htdocs/joomla16"
ServerName work.online

<Directory "D:/xampp/xampp/htdocs/joomla16">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Apache is case sensitive so make sure that folder names are correct - I changed them to lower case but you would need to change them to how they really are.

The HOSTS file remains the same and the first 2 lines may look like this
Code: Select all
127.0.0.1 localhost
127.0.0.1 work.online


On your network you may need to tell each PC that work.online equates to the IP address of your virtual server machine - so they can type http://work.online instead of 172.16.186.118 - HOSTS file in each PC on the network perhaps may need an edit:
Code: Select all
172.16.186.118 work.online

Best wishes.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: xampp and joomla installation problem on intranet

Postby hobbel » 29. December 2010 23:25

i sincerly hope that i'll not have to tell on every pc that the ipadress resolves to http://work.online/

We are an international company, with more then 3000 people.
and the it guys are based in germany and singapore.

so is there no other way???
hobbel
 
Posts: 4
Joined: 29. December 2010 00:34

Re: xampp and joomla installation problem on intranet

Postby Altrea » 29. December 2010 23:37

You should find out if your company runs their own DNS-Server.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: xampp and joomla installation problem on intranet

Postby hobbel » 30. December 2010 00:06

if they do, they have to make adjustments?
because we have another site on our company with another vitrual server, and this one uses port 8080
and this one works.
hobbel
 
Posts: 4
Joined: 29. December 2010 00:34

Re: xampp and joomla installation problem on intranet

Postby hobbel » 02. January 2011 00:21

is there anybody who can help me?
hobbel
 
Posts: 4
Joined: 29. December 2010 00:34

Re: xampp and joomla installation problem on intranet

Postby WilliL » 02. January 2011 11:56

see answer of Altrea :!:
discribe your Problem, show this thread.
Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 206 guests