LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Issue with Apache? (https://www.linuxquestions.org/questions/linux-newbie-8/issue-with-apache-720896/)

your_shadow03 04-22-2009 07:04 AM

Issue with Apache?
 
I was reading the doc http://www.xenocafe.com/tutorials/li...rver/index.php and getting webpages ready. I followed from beginning to the end.
My Machine says :
Code:

[root@tux conf]# httpd -S
VirtualHost configuration:
127.0.0.1:80          is a NameVirtualHost
        default server localhost (/etc/httpd/conf/httpd.conf:1018)
        port 80 namevhost localhost (/etc/httpd/conf/httpd.conf:1018)
        port 80 namevhost groupultra.com (/etc/httpd/conf/vhosts/groupultra.com.80.conf:1)
10.14.236.98:443      groupultra.com (/etc/httpd/conf/vhosts/groupultra.com.443.conf:6)
wildcard NameVirtualHosts and _default_ servers:
_default_:443          relay.groupultra.com (/etc/httpd/conf.d/ssl.conf:88)
Syntax OK
[root@tux conf]#

But when I open the page in browser as
Code:

htmlview http://groupultra.com
It throws Apache Default Test Page
Also, I choosed https:// or http:// but the display is same Test page.
From where its taking test page.Why SSL not asking me for certificate.
I am just in try to host namebased website through my linux Box.
Any Idea ?

kentyler 04-23-2009 03:49 PM

You can only use namebased virtual hosts if you have this server pointed to a nameserver which resolves the names for the hosts you are using. Otherwise it picks up the default host and gives you that page.

If you look where the server is looking for the default host files and put your site there it will appear.

your_shadow03 04-23-2009 10:38 PM

I ditn get you. Can you elaborate?


All times are GMT -5. The time now is 10:37 PM.