Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I think the site is just incredible....I am learning more here than anywhere else before and am looking forward to being able to help someone .... this is my idea of what the Internet is supposed to do..."

Geography

Where in the world do Tek-Tips members come from?
benjabievres (TechnicalUser)
1 Jun 12 4:01
Hello,
i'm using Apache2 in Lunix CentOS 5

I configured a new vhost (using Plesk). The PHP files execute well in the directories configured for that vhost.

But because it's a new server, and because the public domain name corresponding to that vhost points to an older server, i need to configure the default host of my new server to point to the same directories (for integration tests with external applications).

So i modified httpd.conf so that an alias points to the same root directory than my vhost:

Alias /demo/ "/var/www/vhosts/mondomaine.com/httpdocs/demo/"

<Directory "/var/www/vhosts/mondomaine.com/httpdocs/demo/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>


now, if i use the ip address of my server instead of the domain name, it finds the correct directory. But, instead of executing the PHP files, the files are downloaded by the browser, as if they weren't recognized as PHP scripts.

Is there anything else i should do to make the PHP execute as well when i use the ip address instead of the domain name?

thank you for your help

Best regards

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close