|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi. I am running an apache web server on my windows xp machine, just for
development purposes. My computer does not serve pages over the internet. The machine is running Windows xp professional behind a router with a static IP address. I also have a domain name and the DNS is run from another publicly accessible machine on my network. I would just like to run some virtual hosts on my local machine for development purposes. I am not interested in anyone accessing these servers from the public, at all. I have been reading a lot about Windows loopback, ip aliases, and such. The apache site tells how to set up IP-based virtual hosts, but I am not sure how to set up additional IPs on this computer. can anyone supply a simple answer or more good references I can add to my collection? Thanks again. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In news:zFYug.68901$Lm5.34971@newssvr12.news.prodigy. com,
sweet_cheex <sweet_cheeks_sf_nofriedspam42@pacbell.net> stated, which I commented on below: > Hi. I am running an apache web server on my windows xp machine, just > for development purposes. My computer does not serve pages over the > internet. > The machine is running Windows xp professional behind a router with a > static IP address. I also have a domain name and the DNS is run from > another publicly accessible machine on my network. > > I would just like to run some virtual hosts on my local machine for > development purposes. I am not interested in anyone accessing these > servers from the public, at all. > > I have been reading a lot about Windows loopback, ip aliases, and > such. The apache site tells how to set up IP-based virtual hosts, but > I am not sure how to set up additional IPs on this computer. can > anyone supply a simple answer or more good references I can add to my > collection? > Thanks again. Additional IPs can be set in IP properties, Advanced, IP Settings tab. This is more of an IIS question. Posting to the IIS group could have been more specific for your question, but I can give you a basic view of it. Apache and IIS are very similar in what they do and how they work. They are simply sharing tools to allow sharing resources or apps across a intranet/internet. You can set multiple virtual websites on one IP, which wouldn't require multiple IPs. IIS and Apache uses the host header (the actual URL you connect by) as the uniqueness factor to distinguish each individual webstite. The only time I would see to have individual IPs per site is if each site is SSL based. SSL uses the IP address as a uniqueness factor beyond hostheaders. I usually do not like to use aliases in DNS. I normally like to use the direct name to IP reference, especially if host headers are involved. It's a cleaner setup besides the fact an alias requires addition query steps and can cause confusion in some cases. Loopbacks are fine, but you can simply use a straight IP mapped to a name under the zone. There are many resources for IIS. One of which is www.iisanswers.com. As for Apache, you can Google for it. Here are some additional reading. Disregard the OS version, since many steps are similar except for additional features and apps/.Net configuration in IIS 6 on 2003. But since you're using Apache, it wouldn't really matter anyway. Keep in mind, IIS runs native .Net, ASP, ASPX, ISAPI and COM packages more efficiently and securely (especially for the operating system) than can Apache using other programming languages. Reason is the app is run within the IIS context (in the actual inetinfo.exe process) and not the operating system, as you would need to do using CGI, PHP, etc. IIS runs CGI, PHP and others too, but they must be run in the OS context. 190008 - HOW TO- Use Host Header Names to Host Multiple Sites from One IP Address in IIS 5.0: http://support.microsoft.com/default...b;en-us;190008 315982 - HOW TO Configure DNS Records for Your Web Site in Windows 2000: http://support.microsoft.com/?id=315982 IIS Answers - How to create multiple websites with one IP address: http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm 187504 - HTTP 1.1 Host Headers Are Not Supported When You Use SSL: http://support.microsoft.com/default...b;en-us;187504 What Is a Host Header: http://www.winnetmag.com/Article/Art...7404/7404.html 324260 - HOW TO Configure DNS Records for Your Web Site in Windows Server 2003: http://support.microsoft.com/?id=324260 IIS Answers - DNS for IIS Administrators: http://www.iisanswers.com/articles/dns_for_iis.htm Web Naming and Addressing Overview (URIs, URLs, ...): http://www.w3.org/Addressing/ Mapping URLs to Filesystem Locations - Apache HTTP Server: http://httpd.apache.org/docs/urlmapping.html ITS Web Services Setting up a Redirect Announcement: http://www.its.caltech.edu/its/servi...redirect.shtml Redirecting Your Home Page: http://www.art.net//redirecting.html Hotlinking - Steps you can take to Prevent it.: http://websiteowner.info/articles/pages/hotlinking.asp I hope they . -- Ace Innovative IT Concepts, Inc Willow Grove, PA This posting is provided "AS-IS" with no warranties or guarantees and confers no rights. Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP Microsoft MVP - Directory Services Microsoft Certified Trainer Having difficulty reading or finding responses to your post? Instead of the website you're using, I suggest to use OEx (Outlook Express or any other newsreader), and configure a news account, pointing to news.microsoft.com. This is a direct link to the Microsoft Public Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you to easily find, track threads, cross-post, sort by date, poster's name, watched threads or subject. It's easy: How to Configure OEx for Internet News http://support.microsoft.com/?id=171164 Infinite Diversities in Infinite Combinations Assimilation Imminent. Resistance is Futile "Very funny Scotty. Now, beam down my clothes." The only constant in life is change... |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"sweet_cheex" <sweet_cheeks_sf_nofriedspam42@pacbell.net> wrote in message news:zFYug.68901$Lm5.34971@newssvr12.news.prodigy. com... > I would just like to run some virtual hosts on my local machine for > development purposes. I am not interested in anyone accessing these > servers from the public, at all. Thanks for your answers everyone. I figured out exactly what to do. This is for: OS: Windows XP Web Server: Apache Network: Small DHCP network (on larger networks YMMV) Scenario: I want to run virtual hosts on my machine but I do not care about them being accessible from the internet. Caveats: I wouldn't mess with this method on a large internal network where you don't know what IPs other devices/people are using. I also ONLY guarantee this will work on a small internal network, and if you port your machine around to various networks these settings will not work consistently for you. 1. Open your command console and do "ipconfig." Note the IP address, subnet mask, dns, and gateway. 2. Go into control panels>network settings>TCP/IP>properties. Click the radio button "Use the following IP Address." 3. Add the IP address you noted above, the subnet mask, and DNS. In the same panel, click "Advanced." This opens a panel which enables you to add more IP addresses. Since you're on a NAT, you have a certain number of addresses allocated by your router. Just increment the IPs. ***Again, I can't take responsibility for how this would act on a larger DHCP network where someone or some other device might already have been assigned the IP your are using.*** Add however many more IP addresses you need for each apache virtual host you want to run. 4. Click OK and close. 5. Add the IPs and names of hosts to your hosts file. In XP it's C:\WINDOWS\system32\drivers\etc\hosts 6: The convention in the hosts file is as follows: IP host 127.0.0.1 localhost 192.168.123.101 myServer 192.168.123.102 myOtherServer 192.168.123.103 mySpecialServer 7. Restart 8. Configure your apache httpd.conf file with IP virtual hosts using the IPs and hostnames you just created. Done. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Sorry, I cancelled my last message saying how I eventually did this. It is
possible to do virtual hosts without having extra IP addresses on windows - I just forgot. "sweet_cheex" <sweet_cheeks_sf_nofriedspam42@pacbell.net> wrote in message news:zFYug.68901$Lm5.34971@newssvr12.news.prodigy. com... > Hi. I am running an apache web server on my windows xp machine, just for > development purposes. My computer does not serve pages over the internet. > > The machine is running Windows xp professional behind a router with a > static IP address. I also have a domain name and the DNS is run from > another publicly accessible machine on my network. > > I would just like to run some virtual hosts on my local machine for > development purposes. I am not interested in anyone accessing these > servers from the public, at all. > > I have been reading a lot about Windows loopback, ip aliases, and such. > The apache site tells how to set up IP-based virtual hosts, but I am not > sure how to set up additional IPs on this computer. can anyone supply a > simple answer or more good references I can add to my collection? > > Thanks again. > |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
sweet_cheex wrote: > Sorry, I cancelled my last message saying how I eventually did this. It is > possible to do virtual hosts without having extra IP addresses on windows - > I just forgot. I don't know where to reply anymore, you have two topics at the same place and both of them are not related to windows,IIS, DNS or even microsoft :-) use the following link for creating virtual hosts on XP http://johnbokma.com/windows/apache-...-hosts-xp.html regards |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
"Broadcast" <wael.shaheen@gmail.com> wrote in message news:1153295541.099003.143710@m79g2000cwm.googlegr oups.com... > > sweet_cheex wrote: >> Sorry, I cancelled my last message saying how I eventually did this. It >> is >> possible to do virtual hosts without having extra IP addresses on >> windows - >> I just forgot. > > I don't know where to reply anymore, you have two topics at the same > place and both of them are not related to windows,IIS, DNS or even > microsoft :-) Actually if you read more closely yes they do. I clearly stated that a) I am running windows xp b) I am trying to set up virtual hosts in apache, which is also a popular web server which runs on windows c) I want to do it without a domain name d) In that light I want to figure out how to do IP-based virtual hosts If this is totally outside the purview of this group I do apologize, but based on some of the items above I would submit it isn't. Thanks again |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
sweet_cheex wrote:
> "Broadcast" <wael.shaheen@gmail.com> wrote in message > news:1153295541.099003.143710@m79g2000cwm.googlegr oups.com... >> >> sweet_cheex wrote: >>> Sorry, I cancelled my last message saying how I eventually did >>> this. It is >>> possible to do virtual hosts without having extra IP addresses on >>> windows - >>> I just forgot. >> >> I don't know where to reply anymore, you have two topics at the same >> place and both of them are not related to windows,IIS, DNS or even >> microsoft :-) > > Actually if you read more closely yes they do. I clearly stated that > > a) I am running windows xp > b) I am trying to set up virtual hosts in apache, which is also a > popular web server which runs on windows > c) I want to do it without a domain name > d) In that light I want to figure out how to do IP-based virtual hosts > > If this is totally outside the purview of this group I do apologize, > but based on some of the items above I would submit it isn't. Regardless of what the web server software is, you can host only one web site per IP and port unless you use host headers, which requires a matching name. -- Best regards, Kevin D. Goodknecht Sr. [MVP] Hope This s =================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue, to respond directly to me remove the nospam. from my email address. =================================== http://www.lonestaramerica.com/ http://support.wftx.us/ https://secure.lsaol.com/ =================================== Use Outlook Express?... Get OE_Quotefix: It will strip signature out and more http://home.in.tum.de/~jain/software/oe-quotefix/ =================================== Keep a back up of your OE settings and folders with OEBackup: http://www.oe.com/OEBackup/Default.aspx =================================== |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
In news:znFvg.174647$F_3.79955@newssvr29.news.prodigy .net,
sweet_cheex <sweet_cheeks_sf_nofriedspam42@pacbell.net> stated, which I commented on below: > Actually if you read more closely yes they do. I clearly stated that > > a) I am running windows xp > b) I am trying to set up virtual hosts in apache, which is also a > popular web server which runs on windows > c) I want to do it without a domain name > d) In that light I want to figure out how to do IP-based virtual hosts > > If this is totally outside the purview of this group I do apologize, > but based on some of the items above I would submit it isn't. > > Thanks again This is more of an IIS group question, as I mentioned in my original response. But I did respond to almost all of what you are asking in the list in this last post. Yes, Apache is a very popular web server, but keep in mind where did you post your question? You posted a question about Apache in a Microsoft DNS newsgroup. But I tried to to relate to you that IIS and Apache are very similar and probably posting it in the IIS group would have been closer. Actually there are Apache newsgroups out there that would have been more specific. As far as web servers, they all do the same job and have pretty much similar features. Besides the step by step on how to add an IP address, you mentioned the steps to add entries into the HOSTS file, then configure them in the httpd.conf file. DNS is a (central) dynamic database of names for everyone to use that replaces the hosts file. Hosts files are local machine only. If you want just IPs, don't bother adding names in the httpd.config (IIRC that's how it works). As for your question #c, you don;t have to have a domain name, you can just connect by IP address,or name, whichever you like. You have the how-to to create multiple IPs under XP (which the steps are the same for 2000 and 2003). Once the IPs are in the OS, then they become available under IIS OR Apache. Apache and IIS recognize the operating system and it's IP configuration to allow you to use them. One IP is easier, especially if you are not using SSL (https). Just create names, such as website1, website2, etc. Create the name website Ace |
|
![]() |
| Outils de la discussion | |
|
|