LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 11-10-2004, 12:07 AM   #1
lil_drummaboy
Member
 
Registered: May 2003
Location: Victoria, CANADA!
Distribution: OpenBSD, Slackware, Debian
Posts: 85

Rep: Reputation: 15
Apache ProxyPass/VirtualHost question


Hey,

I have a main server running apache on linux and my windows machine with a small webserver on it. I have set up the following in httpd.conf

ProxyPass /files http://192.168.1.0/files/

now, this works fine and dandy but instead of accessing this by http://www.mydomain.com/files/ i would LIKE to do it like this http://files.mydomain.com. What is the simplest way to do this? I tried making a folder with a index.htm with a javascript redirect to the ProxyPass url that was setup as a VirtualHost but i'm sure there is an easier way.

Any suggestions?
 
Old 11-10-2004, 12:59 AM   #2
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
This can get REALLY complex, email me[ turah@linuxtorrents.org ] if you want to get it set up, i started writing a reply and its just gonna confuse the hell out of you.

If you want, check out this link--> http://httpd.apache.org/docs/vhosts/ its where i started.

linux_terror
 
Old 11-10-2004, 11:53 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
If you want this to be your main site then make it your DocumentRoot in the config file httpd.conf.

It's not really necessary to have a Virtual host for one site. All connections to your server that do not provide a folder or filename will land there.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache proxypass url prob collen Linux - Software 0 10-14-2005 06:59 AM
Apache -VirtualHost davidhk Debian 7 08-19-2005 12:33 PM
apache proxypass, or lighttpd php belorion Linux - General 2 07-15-2005 10:07 AM
Help with Apache <VirtualHost> please. smakkythecamel Linux - Networking 2 06-12-2003 07:15 PM
apache virtualhost jonfa Linux - Networking 5 08-12-2002 06:07 PM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration