ServerAlias not working
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > ServerAlias not working




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ServerAlias not working  
craig


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-24-05 10:53 PM

Aphache 2.0.52
FC3 2.6.x

It was working... Then I tried to get PHP-5 installed and working. Prior
to all of this I saved my httpd.conf. I'm back to using this same
httpd.conf. I encounter problems with php-5.

I have two domain names I'm supporting and use two different DNS providers.

The DNS provider servicing the problem domain requires that I set up a
ServerAlias One DNS provider doesn't even require me setting up a
ServerAlia as shown:

<VirtualHost *:80>
ServerName www.earthly.biz
DocumentRoot /var/www/earthly
ErrorLog /var/www/earthly/logs/error.log
CustomLog /var/www/earthly/logs/access.log common
</VirtualHost>

I have a domain name "weweartights.org"  a road bicycling blog"
I can access the sight with www.weweartights.org"  but NOT with the root
domain name "weweartights.org"

What happens is that "weweartights.org" give me the apache index.html
default page? and that make me think the problem is at my end with my
server... but I'm not sure.

my httpd.conf for the problem domain is:

<VirtualHost *:80>
ServerName weweartights.org
ServerAlias www.weweartights.org
DocumentRoot /var/www/weweartights
ErrorLog /var/www/weweartights/logs/error.log
CustomLog /var/www/weweartights/logs/access.log common
</VirtualHost>





[ Post a follow-up to this message ]



    Re: ServerAlias not working  
David


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-05 01:48 AM

craig wrote:
> Aphache 2.0.52
> FC3 2.6.x
>
> It was working... Then I tried to get PHP-5 installed and working. Prior
> to all of this I saved my httpd.conf. I'm back to using this same
> httpd.conf. I encounter problems with php-5.
>
> I have two domain names I'm supporting and use two different DNS providers
.
>
> The DNS provider servicing the problem domain requires that I set up a
> ServerAlias One DNS provider doesn't even require me setting up a
> ServerAlia as shown:
>
> <VirtualHost *:80>
> ServerName www.earthly.biz
> DocumentRoot /var/www/earthly
> ErrorLog /var/www/earthly/logs/error.log
> CustomLog /var/www/earthly/logs/access.log common
> </VirtualHost>
>
> I have a domain name "weweartights.org"  a road bicycling blog"
> I can access the sight with www.weweartights.org"  but NOT with the root
> domain name "weweartights.org"
>
> What happens is that "weweartights.org" give me the apache index.html
> default page? and that make me think the problem is at my end with my
> server... but I'm not sure.
>
> my httpd.conf for the problem domain is:
>
> <VirtualHost *:80>
> ServerName weweartights.org
> ServerAlias www.weweartights.org
> DocumentRoot /var/www/weweartights
> ErrorLog /var/www/weweartights/logs/error.log
> CustomLog /var/www/weweartights/logs/access.log common
> </VirtualHost>


you website works like it should from where I am sitting (Portland, OR)
get the same page for both weweartights.org and www.weweartights.org

Maybe it is something happening on just your local machine.

Have you tried replacing the <VirtiualHost *:80>
with the actual ip number instead  <VirtiualHost xxx.xxx.xxx.xxx:80>





[ Post a follow-up to this message ]



    Re: ServerAlias not working  
craig


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-25-05 12:57 PM

> you website works like it should from where I am sitting (Portland, OR)
> get the same page for both weweartights.org and www.weweartights.org
>
Yeah I've learned that too from a friend I had who got on with both
without a problem.
> Maybe it is something happening on just your local machine.
>
it must be
> Have you tried replacing the <VirtiualHost *:80>
> with the actual ip number instead  <VirtiualHost xxx.xxx.xxx.xxx:80>

no I haven't tried this... I'll give it a shot.
What's weird is this wasn't the case with the same apache php versions
that are now running.

it's just weird.... my xp box on the same lan has the same problem.





[ Post a follow-up to this message ]



    Re: ServerAlias not working  
David


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-05 01:50 AM

craig wrote: 
> Yeah I've learned that too from a friend I had who got on with both
> without a problem.
> 
> it must be
> 
>
>
> no I haven't tried this... I'll give it a shot.
> What's weird is this wasn't the case with the same apache php versions
> that are now running.
>
> it's just weird.... my xp box on the same lan has the same problem.

This morning I tried on of my own domains and I get the same resilts as
you do, and I haven changes anything! I am running Apache 2.0.53
PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6

I checked my <VirtualHost> tag and am running it with the <VirtualHot
xxx.xxx.xxx.xxx:80> format, so that does not appear to be the cause of
the problem.  Will keep you posted on my findings.

-David





[ Post a follow-up to this message ]



    Re: ServerAlias not working  
craig


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-05 07:50 AM


> This morning I tried on of my own domains and I get the same resilts as
> you do, and I haven changes anything! I am running Apache 2.0.53
> PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6
So have you come up with anything so far.
I've compiled apache 2.0.53 and PHP5. I get the same bs.
What I did discover is that if I include the /index.php after the domain
or www.domain the site loads.  Why I have to add this when on another
doamin I'm running with the same php application I "don't" have to do
this and it runns perfectly is beyond me. It's also very interesting
that that I get the same bs regardless of which apache php combination I
use. I might try changing out the linksys router. I'm grabbing at straws.

> I checked my <VirtualHost> tag and am running it with the <VirtualHot
> xxx.xxx.xxx.xxx:80> format, so that does not appear to be the cause of
> the problem.  Will keep you posted on my findings.
>
> -David





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:18 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register