I'm developing a web page and I'm using WAMP which is installed on my disk "C:". Now I just want to put it on the server of the company. To make it accessible from all users of my intranet.
Can you explain me the steps I need to do?
Yes its quite easy.
I am assuming you are using WAMPServer, but if you are using another WAMP setup the basic concept still applies, just the file locations and httpd.conf file contents may look a little different
First you need to know your subnet so, start by opening a command window and run
ipconfig
Look at the output and under this heading
Ethernet adapter Local Area Connection:
Look for this line
IPv4 Address. . . . . . . . . . . : 192.168.2.11
and remember the first 3 of the 4 quartiles, so in thsi example I would remember 192.168.2
Now, edit the httpd.conf file ( using the menu links from the wampmanager icon )
Find the section in there that starts with this line
<Directory "c:/wamp/www/">
Within that section you should find something like this if you are using Apache 2.2.x
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
Or this if you are using Apache 2.4.x
# onlineoffline tag - don't remove
Require local
You now need to add another instruction to this to tell Apache it is allowed to accept connections from other ip addresses
So if you are using Apache 2.2.x change it to this
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
Allow from 192.168.2
Or this if you are using Apache 2.4.x
# onlineoffline tag - don't remove
Require local
Require ip 192.168.2
Because you have used just the first 3 of the 4 quartiles of the network subnet all PC who have an ip address starting with 192.168.2 will be allowed to access Apache.
You can add more of these Allow or Require lines as you like when someone from another subnet within you company want to access your server.
As you are on a company network your subnet may start with 10.x.y.z. If you wanted the whole company to be allowed access you could use just Require ip 10
for example to give access to everyone inside your company network.
If you have created a Virtual Host for the site you want people to access, and I would recommend you do, you should make these access changes within the Virtual Hosts definition and not in the httpd.conf file.