| Author |
ServerAlias not working
|
|
|
| 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>
| |
|
| 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>
| |
|
| > 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.
| |
|
| 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
| |
|
|
> 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
|
|
|
|