It looks like I have it working, what I did was in addition to the entry for <a href="http://foobar.domain1.com">foobar.domain1.com</a> on port 8080, I added the following:<br><VirtualHost <a href="http://127.0.0.1:80">
127.0.0.1:80</a>><br> ServerName <a href="http://foobar.domain1.com">foobar.domain1.com</a><br> DocumentRoot /var/www/foobar<br></VirtualHost><br><br>Where /var/www/foobar doesn't exist. That way, if someone goes to
<a href="http://foobar.domain1.com">foobar.domain1.com</a> on port 80, they'll get a 404. Until today, I was only listening on 8080, keeping people from finding I had a web server running (since most only scan port 80). However, I have some legit people accessing certain sites, but some where having problems going to 8080.
<br><br>The one problem is if someone goes to the actual IP address, they're still presented with the <a href="http://foo.domain1.com">foo.domain1.com</a> page instead of an error. I'll see if there's a way to do a redirect or rewrite.
<br><br><div><span class="gmail_quote">On 6/1/07, <b class="gmail_sendername">Barry Von Ahsen</b> <<a href="mailto:barry@vonahsen.com">barry@vonahsen.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tim Wilson wrote:<br>> On 6/1/07, Chris Freeman <<a href="mailto:cwfreeman@gmail.com">cwfreeman@gmail.com</a>> wrote:<br>>><br>>><br>>><br>>> On 6/1/07, David Champion <<a href="mailto:dchampion@visionary.com">
dchampion@visionary.com</a>> wrote:<br>>> ><br>>> > ...<br>>> > Doing a search / replace on the IP isn't that hard (at least using joe.<br>>> > Doing it in vi, well, that's another story).
<br>>> ><br>>> > -dc<br>>><br>>><br>>> <off-topic flame="on" why="because I can" ><br>>> While doing it in joe might not be hard, doing it in vi is downright
<br>>> easy.<br>>> And fun. ;-)<br>>> </off-topic><br>>><br>>><br>>><br>>> _______________________________________________<br>>> Cialug mailing list<br>>> <a href="mailto:Cialug@cialug.org">
Cialug@cialug.org</a><br>>> <a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br>>><br>>><br>> Ignoring the potential flame war (FTR, I use emacs, and it is very easy), I
<br>> tried it with IP addresses and with *. With *, I get warnings when<br>> restarting httpd. With IP addresses (or with *), If I go to<br>> <a href="http://foobar.domain1.com">foobar.domain1.com</a> (port 80), I get what I would expect from
<br>> <a href="http://foo.domain1.com">foo.domain1.com</a>.<br>> Is there a way to display an error when someone goes to<br>> foobar.domain1.comon port 80, but display the page when they go to<br>> port 8080? I did add
<br>> NameVirtualHost lines with the appropriate ports.<br>><br><br>you could do<br><VirtualHost foobarip:80><br> ServerName <a href="http://foobar.domain1.com">foobar.domain1.com</a><br> Redirect /
<a href="http://foobar.domain1.com:8080/">http://foobar.domain1.com:8080/</a><br></VirtualHost><br><br>to redirect them or<br><br> RedirectMatch permanent (.*) <a href="http://foobar.domain1.com:8080$1">http://foobar.domain1.com:8080$1
</a><br><br>to redirect them to what they requested<br><br>-barry<br>_______________________________________________<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug">
http://cialug.org/mailman/listinfo/cialug</a><br></blockquote></div><br><br clear="all"><br>-- <br>Tim