Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wedsite and webmail

Status
Not open for further replies.

benp07

Technical User
Aug 31, 2001
87
US
i have a webmail running a apache and i wanted to add a website and host it on that same box but i want the website to be on port 80 and webmail to run on a different port i am running freebsd does anyone know of a way to do this or somegood links thanks

Ben
 
You need to set up Virtual Hosts in Apache and specify a different port for each virtual host. In the httpd.conf file, do something like this...



### Section 3: Virtual Hosts

NameVirtualHost 123.45.67.89

<VirtualHost 123.45.67.89>
ServerName DocumentRoot &quot;/var/ Port 80

<Directory &quot;/var/ Order allow,deny
Allow from all
</Directory>

</VirtualHost>

<VirtualHost 123.45.67.89>
ServerName DocumentRoot &quot;/var/ Port 1200

<Directory &quot;/var/ Order allow,deny
Allow from all
</Directory>

</VirtualHost>




ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top