Running Apache on SBS 2003 *without* breaking IIS

Tech-Archive recommends: Fix windows errors by optimizing your registry



Situation: You need to run an Apache server on the Internet, but also
provide the wizards (like ConnectComputer) inside the domain.

Problem: Installing an Apache web server breaks several wizards and
panels in Server Management. This happens because SBS relies on an
Internet Information Services (IIS) web server running on the server at
port 80. When Apache takes over port 80, it forces IIS out and breaks
many wizards and panels, usually by showing "404 Not Found" errors
instead.

Solution: Change the IIS port and force Apache to redirect internal
requests.

(1) Open Control Panel, Administrative Tools, Internet Information
Services (IIS) Manager. Expand Local Computer, Web Sites. Right-click
on Default Web Site and choose Properties. Change TCP port to 81.
Click OK. In toolbar, reboot the server by clicking Stop, and then
Start.

(2) Edit your Apache configuration file, usually in <C:\Program
Files\Apache Group\Apache2\conf\httpd.conf>. Add these lines to the
bottom, changing "yourcompany" and "myserver" for your network:

--START CODE--
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
ServerName www.yourcompany.com
ServerAlias yourcompany.com
</VirtualHost>

<VirtualHost *:80>
ServerName myserver
ServerAlias myserver.yourcompany.local localhost
Redirect / http://myserver:81/
</VirtualHost>
--END CODE--

Restart your Apache server by using Apache Monitor in the system tray,
or in Control Panel, Administrative Tools, Services.

(3) Add an entry to your HOSTS file to redirect IIS correctly. It's
usually in <C:\WINDOWS\system32\drivers\etc\hosts>. Add these lines to
the bottom, changing "myserver" for your network:

--START CODE--
127.0.0.1 myserver
--END CODE--

Future Work: This could be easily extended to COMPANYWEB by using
redirect rules similar to those above.

Keywords: Microsoft Windows Small Business Server SBS 2003, Apache,
Internet Information Services IIS, Web Server, Server Management,
Backup, Monitoring and Reporting, ConnectComputer, Connect Computer.

.



Relevant Pages

  • RE: Outlook Web Access
    ... Please check if TCP port is opened on that device. ... On an internet client, ... "Web server name" in the "Web Server Certificate' page? ...
    (microsoft.public.windows.server.sbs)
  • Re: Python as a Server vs Running Under Apache
    ... > shared resources in Apache is next to impossible. ... Apache is a web server, and it isn't necessarily practical or sensible ... you don't end up with application server code which is somehow ...
    (comp.lang.python)
  • Re: Setting up DNS records for internal web sites
    ... Internet Explorer would use NetBIOS ... name as the web server ... only internal use by uses whose primary DNS server will be ...
    (microsoft.public.win2000.dns)
  • Re: IP routing with remote DNS, but server & client on same subnet - how?
    ... One Linux server running Apache2 ... there" and on the internet, ... towww.mydomain.netand I'm redirected to my little Apache server. ... network, on one of my WinXP clients and I browse towww.mydomain.net, ...
    (comp.os.linux.networking)
  • Re: Home web server hosting
    ... whom I am developing a web site, can look in from time to time to ... Apache is up and running and the inside IP is fixed by setting IPv4 to ... Broadband internet connections work as they should. ... internet) connection to the Apache server. ...
    (comp.sys.mac.comm)