The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Article Feedback - Apache - virtual hosts
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 <Virtualhost>
Author: Tom C 
Date:   15-10-02 18:22

Hello

I am writing this because i have a little problem
with my apache. And I thought that some can help me.
The thing is that I set few webservers
however i do not know how I can get
www.tomcieplinski.com:81 to work . I got to work
tomcieplinski.com:81.
Please have look.

NameVirtualHost 192.168.1.2:81
NameVirtualHost 67.82.35.207:81

<VirtualHost 192.168.1.2:81 67.82.35.207:81>
DocumentRoot /home/www-root/tactech.net
ServerName www.tactech.net
DirectoryIndex index.html welcome.html
</VirtualHost>


This works no problem ! Either www.tactech.net:81 or
tactech.net:81





<VirtualHost 192.168.1.2:81 67.82.35.207:81>
DocumentRoot /usr/share/squirrelmail
ServerName mail.tactech.net
DirectoryIndex index.php
</VirtualHost>

This works fine too.

<VirtualHost 192.168.1.2:81 67.82.35.207:81>
DocumentRoot /home/bsienkiewicz/www-root
ServerName blazej.tactech.net
DirectoryIndex index.html
</VirtualHost>

This does NOT work ----> do not know why .


<VirtualHost 192.168.1.2:81 67.82.35.207:81>

DocumentRoot /home/www-root/slaveofthesysx.com
ServerName www.slaveofthesysx.com
ServerAlias slaveofthesysx.com
DirectoryIndex index.php index.html welcome.html
index.htm index.shtml

</VirtualHost>

This works just fine.

<VirtualHost 192.168.1.2:81 67.82.35.207:81>
DocumentRoot /home/www-root/tomcieplinski.com
ServerName www.tomcieplinski.com
ServerAlias tomcieplinski.com
DirectoryIndex index.html
</VirtualHost>

And here I can only get tomcieplinski.com:81 I do knot
know why when I type in a web browser
www.tomcieplinski.com:81 I get nothing no webpage
whatsoever.

LockFile "/var/lock/httpd.lock"
CoreDumpDirectory "/etc/httpd"


Thank you for Your help.

Tom C

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 <Virtualhost>   new
Tom C 15-10-02 18:22 
 Re: <Virtualhost>   new
Dan Langille 16-10-02 06:03 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org