Results 11 to 20 of 21
you will have to use your linux machine's internal ip in httpd.conf with virtualnamehost.
do a
#/sbin/ifconfig -a
and assign the ip address that you get there.
Do you have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-24-2003 #11Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
you will have to use your linux machine's internal ip in httpd.conf with virtualnamehost.
do a
#/sbin/ifconfig -a
and assign the ip address that you get there.
Do you have any other local machines connected to your router?
- 06-24-2003 #12Just Joined!
- Join Date
- Jun 2003
- Posts
- 50
Yes, I have other machines connected to the router. But they have nothing to do with the webserver. Just machines for browsing the net.
I thought I already tried using machine's internal ip, but I'll try again tonight. I also did search on the net for my problem... read alot lately. Seems many people have the same issue... I will give it another try, if I can't get it working... think I try reinstalling it this weekend.
- 06-24-2003 #13Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
I'll try the same this week and will keep you posted. I have apache installed, I'll get a domain name from dyndns and keep you posted on the developments.
By the way can the other local machines access your webserver by typing the ip address? and by typing the server name?
- 07-08-2003 #14Just Joined!
- Join Date
- Jun 2003
- Posts
- 50
Hey nikhil,
I finally figured it out! My virtual name hosts are working. It was the line
"Include config.d/*.cfg" Once I get this directive commented, my virtual name host resolves. Now, I just gotta figure out which of those config files are causing it. I think it might be the SSL one... even though I don't load SSL on my box...hmm... will see what happens. Thanks alot again for you help.
- 07-08-2003 #15Just Joined!
- Join Date
- Jun 2003
- Posts
- 50
I found the setting thats causing my virtual host not to resolve. Is the php.conf file and the directive "DirectoryIndex index.php". I comment out this directive and my virtual host works fine. Can someone explain this to me? Maybe because I don't have the index.php in my Document root? Thats why it automatically loads the default test page??? Hmmm... I will create the index.php file and see what happens.
- 07-08-2003 #16Just Joined!
- Join Date
- Jun 2003
- Posts
- 50
yup thats it! The php.conf directive "DirectoryIndex index.php" overides the main directoryindex. It all makes sense now. Many thanks and I gain some knowledge =)
- 07-08-2003 #17Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
cool...dont you have many files in the DirectoryIndex directive like
index.html,index.shtml,index.php...I guess this way if it does not find index.php it will move on to the next in the list.
- 07-09-2003 #18Just Joined!
- Join Date
- Jun 2003
- Posts
- 50
yeah... now I know. I never knew that php.conf contains the DirectoryIndex directive also. Now I am working on securing my site. I only know 2 basics... one is to limit the info on the server and turning off directory indices. Any other tips? There seems to be so many different kind of authentications. I gotta figure out which one is best. Also SSL doesn't work with virtual name hosts right?
- 07-09-2003 #19Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
SSL does work with virtual name hosts. I have two different sites running one on http and the other on https.
Try the following lines in your httpd.conf file, modify them accodring to your config.
<VirtualHost ip-address
ort number>
SSLEngine off
ServerAdmin
ServerName
DocumentRoot
</VirtualHost>
Using the order allow,deny along with .htaccess and .htpasswd file seems to be one way of securing your webserver instance, there might be many other diff ways as well.
- 07-10-2003 #20Just Joined!
- Join Date
- Jun 2003
- Posts
- 50
Cool, thanks alot for the tips nikhil. I will fool around with it. I will post new messages when I run into bumps. Take care for now.


Reply With Quote
