Forum Moderators: phranque

Message Too Old, No Replies

Subdomain help needed

attempt to invoke directory as script

         

Cyberpundit

4:20 pm on Jan 28, 2012 (gmt 0)

10+ Year Member



Hi. I have a site and a subdomain inside which I need to run Wordpress.

So my
httpd.conf
has:


<VirtualHost 9.9.9.9:80>
ServerName sub.mysite.com
ServerAlias www.sub.mysite.com
DocumentRoot /home/mysite/public_html/site/sub
...

RewriteCond %{HTTP_HOST} ^(sub)\.(mysite|mysite2)\.(com|net)
RewriteRule ^/(.+)$ /site/sub/$1 [L,QSA]
...

</VirtualHost>


<VirtualHost 9.9.9.9:80>
ServerName sub.mysite.com
DocumentRoot /home/mysite/public_html/site/sub
UseCanonicalName On
</VirtualHost>




This works. I'm not sure *which* part Apache is looking at to serve the
sub.mysite.com
-- the subdomain "VirtualHost"? Or the "ServerAlias"?

Inside that folder's "
.htaccess
" I have the usual Wordpress:


# BEGIN WordPress
## http://snipr.com/21xip5e WP mod rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /index.php/$1 [L,QSA]
</IfModule>
# END WordPress



Anyway, the subdomain is basically working, but some file paths are acting up and not being found.

For example, I have a folder called "myfolder".
/public_html/www/site/sub/myfolder

When I access this as:
sub.mysite.com/myfolder/

It gives me an error and the error in Apache log is:
"attempt to invoke directory as script"


Any ideas of what I can do?

Thanks!

Cyberpundit

11:45 am on Mar 28, 2012 (gmt 0)

10+ Year Member



Still facing this problem, long time since I posted. Now googling for it brings me my own message :)

Any ideas?

lucy24

8:01 pm on Mar 28, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now googling for it brings me my own message

Isn't that fun? "Oh, good, there's more information online." Whoops, no, it's my own question. Google adores this site ::sitting on hands to suppress various editorial comments:: and will index new posts before the page has had time to refresh.

Your original question probably landed on a day when everyone was busy or unavailable and said "I'll get to this later if nobody else does first" ... and then forgot all about it.

Let's start by laying out in English what you want to do. Once you've clarified the problem we can start hammering out the solution. (Putting the solution first, and then reporting that it doesn't work, tends to be less effective. There's an awful lot of ways for things not to work.)

Anyway, your question has now bounced back up to the top of the thread :)