Solved

assigning anothe ip for wamp

Posted on 2010-08-22
2
456 Views
Last Modified: 2013-12-13
have a wamp on windows 2003 server.  it has an ip and all sites are working under that ip.

i added an ssl to one of the sites, hence the ip for that ssl became that of wamp

i want to add another ssl for a second site under wamp, but i can not do that as the ip was already used for the first ssl

how can i assign to wamp http.conf another ip, and then assign that ip to the website i want to use for the ssl?
0
Comment
Question by:inholyland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
shawnmstout earned 250 total points
ID: 33505728
the easiest way would not be assigned to a different ip address but a different port number to point to that ssl connection, example, instead of 443 you could use 444

another option would be request from your isp a seperate static ip address and use a different nic card for that ip address
0
 
LVL 50

Assisted Solution

by:Steve Bink
Steve Bink earned 250 total points
ID: 33508340
>>> instead of 443 you could use 444

While that does satisfy the technical requirements (unique IP/port), that makes the resulting URL non-intuitive for normal users.  If you are OK with having to type https://mydomain.com:444 instead of just https://mydomain.com, then that solution will work fine for you.

If not, then the first question you need to address is "Do you have another IP to assign?"  If not, contact your hosting provider or ISP for one.  You do not need a separate NIC to add an IP - a new IP can go on the same NIC you are using.  There can be some issues with multi-subnet'd configurations, so make sure you have your gateway and subnet masks worked out properly.  The best case scenario is to get a block of 5 IPs all on the same subnet.  

To actually add the IP, you would first add it to the NIC.  This is done under the TCP/IP configuration.  In Win2003, open up your Network Connections and right-click the NIC receiving the IP.  Select Properties.  In the dialog, highlight "Internet Protocol (TCP/IP)" and click Properties, then click "Advanced".  Configure your new IP in this dialog.  Once it is set up, click "OK" all the way back out.  Pay attention to any prompts that might come up.  Once back at the desktop, you should now be able to ping that IP from another system.  If not, check with your host/ISP to make sure they properly allocated your new address, and verify your configuration.

Now you need to make Apache answer to it.  This is actually pretty simple to do with the Listen and NameVirtualHost directives, and the <VirtualHost> container.  Since you are already running Apache, you are probably at least passing-familiar with these:

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen
http://httpd.apache.org/docs/2.2/mod/core.html#namevirtualhost
http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost

You may also want to take a look at:

http://httpd.apache.org/docs/2.2/vhosts/
http://httpd.apache.org/docs/2.2/mod/core.html#servername
http://httpd.apache.org/docs/2.2/mod/core.html#serveralias

Once you have the host set up, configure your SSL:

http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
http://slacksite.com/apache/certificate.php  (good example for certificate creation and basic configuration)
http://onlamp.com/pub/a/onlamp/2008/03/04/step-by-step-configuring-ssl-under-apache.html  (a more in-depth example for configuration)

Restart Apache, test, go watch TV.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question