LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2002, 04:13 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
setting virtualhost without IP


can someone tell me how to set up my apache to redirect to teh right domain without having to specify my IP in httpd.conf? as my IP is technically dynamic i have to change my config each time my ip changes... although this has only ever happened once... a chunk of my conf says:
Code:
# Virtual host Default Virtual Host
<VirtualHost 80.207.153.3>
        ServerName thirtythreeandathird.net
        DocumentRoot /var/www/html
        DirectoryIndex index.php index.html index.htm index.shtml 
        LogLevel debug
        HostNameLookups off
</VirtualHost>

# Virtual host mail
<VirtualHost mail.thirtythreeandathird.net>
        DocumentRoot /var/www/html 
        ServerName mail.thirtythreeandathird.net
        ServerAlias mail
        LogLevel debug
        RedirectMatch ^.*$ https://www.thirtythreeandathird.net/horde/imp
</VirtualHost>
with the ip in place in the first line it works correctly but if i replace it with the domain name to just thirtythreeandathird.net then it automatically forwards to the second virtualhost here. I'm assuming it uses this one as it's just the next in line. so is it possible to remove my IP altoghether?
 
Old 12-10-2002, 07:43 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
...

Last edited by peter_robb; 12-10-2002 at 07:44 AM.
 
Old 12-10-2002, 07:45 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well, that requires my IP.... i actually have that line already, and was working fine for my old IP, and this one aswell (of course) but i want to be able to remove my ip completey. possible?
 
Old 12-10-2002, 07:45 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
haha..... quite!

or spell!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache -VirtualHost davidhk Debian 7 08-19-2005 12:33 PM
Setting Apache Virtualhost Default Document? Seventh Linux - Software 1 03-21-2005 10:47 AM
VirtualHost amdathlonboy Linux - Networking 2 06-22-2004 05:23 AM
<VirtualHost> problemes freelinuxcpp Debian 4 01-06-2004 08:52 AM
Help with Apache <VirtualHost> please. smakkythecamel Linux - Networking 2 06-12-2003 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration