Jump to content

html files downloading insted of running?...


archonik

Recommended Posts

Hi, I just created a virtual host for my domain. When I access the directory directly from otherdomain/zmaker it works just fine, but when I try do access it via the domain 'myserver' it downloads the file instead of actually running it on every browser that is not IE. It works ok on IE (but I think it just doesn't realize that it should download that file. What a silly browser that is)

 

Here's the piece of my apache conf file that I use to address this domain:

 

<VirtualHost properip>
  ServerName myserver
  DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
  DocumentRoot "/srv/www/vhosts/somepath/httpdocs/zmaker"
  ServerAlias myserver *.myserver
  <Directory "/srv/www/vhosts/somepath/httpdocs/zmaker">
    Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
    Allow from all
  </Directory>
</VirtualHost>

 

Any help would be much appreciated. Thanks!

Link to comment
Share on other sites

Yeah, I didn' think that actually was the issue, just pointing it out.

 

It would seem your mime types may be misconfigured but its hard to tell.

 

Can you grep your httpd.conf file for AddType directives and post the results?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.