sayedsohail Posted September 21, 2007 Share Posted September 21, 2007 Hi everone, I have W2003 server with colleges connected via a LAN based on one network card and the cable modem/broadband connected to the server on second card (Natting). Everyone able to share the files from the server and browse internet. Its working fine. Now, we got a new webapplication in php, mysql. I wish to install apache on this w2003 server, so the internal users can internally connect to the webapplication. I don't want to serve the webapplication on the interent. I have to set apache on this w2003 server in a way, that only internal requests can reach the webapplication. Can someone advised how to configure? Note: I am not sure which section on this forum will be appropriate to ask this question, so please except my apology and I would be grateful, if you wish to move this thread to the relevant section. Thanks Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/ Share on other sites More sharing options...
twistedtwig Posted September 21, 2007 Share Posted September 21, 2007 you need to do something like: in your <location> section or your virtualhost section set the allow from to be your internal network.. i.e. my ip is 156.178.10.15 so I would put allow from 156.178.10.0/24 I hope this guides you in the righr direction sorry it is not a complete answer Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/#findComment-352623 Share on other sites More sharing options...
trq Posted September 22, 2007 Share Posted September 22, 2007 Better yet, let your firewall handle it. Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/#findComment-352841 Share on other sites More sharing options...
steviewdr Posted September 22, 2007 Share Posted September 22, 2007 I would do it with vhosts. <VirtualHost internalip:80> #usual config </VirtualHost> This will allow you to create another website/vhost at a later stage to host a website on the external ip etc. Think flexibility. -steve Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/#findComment-352874 Share on other sites More sharing options...
sayedsohail Posted September 22, 2007 Author Share Posted September 22, 2007 Steviewdr, your method is excellent, i am not sure where i need to add this details: 1. inside my .htaccess file or 2. httpdconf file, i am not sure where i need to put this details and do i need to also add my domain controller ip address inside the following lines. Millions thanks, sorry i am not very technically sound, can you please explain a bit more please. <VirtualHost internalip:80> #usual config </VirtualHost> Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/#findComment-352902 Share on other sites More sharing options...
sayedsohail Posted September 22, 2007 Author Share Posted September 22, 2007 can you also please explain what is #usual config is? thanks. Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/#findComment-352929 Share on other sites More sharing options...
steviewdr Posted September 22, 2007 Share Posted September 22, 2007 A VirtualHost entry is made in the main httpd.conf. A full sample vhostconfig is as follows: <VirtualHost your.internal.ip:80> ServerAdmin root@localhost ServerName internal_computer_name DocumentRoot c:\www\website CustomLog c:\www\access.log combined ErrorLog c:\www\error.log Loglevel warn <Directory /> Options FollowSymLinks Indexes MultiViews AllowOverride All </Directory> </VirtualHost> That should work it. -steve Link to comment https://forums.phpfreaks.com/topic/70188-how-to-setup-apache-for-intranet-purpose-only/#findComment-352955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.