Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-09-2003, 01:18 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 4
Rep:
|
Configuring Virtual Hosts in Apache 2 w/ Mandrake Linux 9.1.
Good Afternoon All!
Hi, I currently run a web server running windows 2003 enterprise server, used primarily for IIS 6. However, frankly I am sick of microsoft and want to learn more about linux. I took that server offline last night, and installed mandrake linux 9.1. I like! However, having some issues configuring Virtual Hosts in the http2.conf file. Let give an example of a host I am trying to create:
<VirtualHost WEBSITEURL:81>
DocumentRoot /home/bnscomp/www
ServerSignature On
</VirtualHost>
The problem is, after making the changes and restarting apache, It will still point the site to /var/www/html. I just dont understand. Now, a few other things. The directory (ie. /home/bnscomp/www) has been created, and contains an index.html file. Also, due to my ISP blocking port 80, anyone typing WEBSITEURL, will then forward to WEBSITEURL:81. Which then arrives at my server.
Any assistence into this matter would be VERY much appreciated! Thanks in advance for all your help
--Brian Samson
P.S. Because this is my first thread it's not letting me type a url, so,
WEBSITEURL=
ww2.
blah
.com
|
|
|
10-09-2003, 01:22 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try the format:
Code:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /home/bnscomp/www
ServerName www.bnscomp.com
<Directory "/home/bnscomp/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
You only need:
NameVirtualHost *:80
Once then copy the VirtualHost section for each host.
|
|
|
10-09-2003, 04:04 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 4
Original Poster
Rep:
|
GREAT! Thanks a lot for the help! It works GREAT! Boy I am really starting to fall for the penguin! LOL. Anyways, one more thing. Is it possible to have the logs for each domain, saved in a different directory? If so, what would I have to add to the virtual hosts section? Thanks again!
~~ Brian
|
|
|
10-10-2003, 12:20 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Take a look at the last secion on this page:
http://httpd.apache.org/docs-2.0/logs.html
|
|
|
All times are GMT -5. The time now is 05:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|