i install subdomain on drupal-6.4
and follow the Readme steps to modify apache httpd.conf .htaccess and setting.php

and always get following error:

DNS server - show/hide details Working

Web server - show/hide details Not working yet
http://subdomain-test.drupal.3-a.net/subdomain/test returned a '404 Page not found' error.
Your web server is not routing subdomains to your Drupal directory.
Possible Solutions:
If you're running Apache, confirm you have the wildcard directive, ServerAlias *.drupal.3-a.net, in the VirtualHost declaration in your Apache configuration
Confirm there are no rogue URL rewrite rules in your Apache configuration or .htaccess file

Drupal's inbound URL rewriting - show/hide details Not working yet
HTTP request to http://subdomain-test.drupal.3-a.net/subdomain/test resulted in an internal Drupal path of . It should have been ~subdomain-test/subdomain/test
The custom_url_rewrite_inbound() function in settings.php is rewriting the internal path incorrectly. Did you patch settings.php? See readme.txt for instructions.

Drupal's outbound URL rewriting - show/hide details Not working yet
Drupal API: url('~subdomain-test/subdomain/test') returned 'http://subdomain-test.drupal.3-a.net/?q=subdomain/test' but should have returned 'http://subdomain-test.drupal.3-a.net/subdomain/test'
The custom_url_rewrite_outbound() function in settings.php is rewriting subdomains incorrectly. Did you patch settings.php? See readme.txt for instructions.

$cookie_domain in settings.php - show/hide details Set

Comments

setvik’s picture

Status: Active » Postponed (maintainer needs more info)

It looks like you don't have "Clean URLs" enabled.

Go to Administer -> Site Configuration -> Clean URLs, enable "Clean URLs", and let me know if that fixes it.

fullmagic’s picture

That's the reason,
after enable clean urls , subdomain test ok.

thanks

fullmagic’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

fuquam’s picture

I have the same issue but I can't get to the admin section of the installed Drupal (6.8) on the subdomain. I get a 404 error just trying to get to it. I believe it has to do with Druapl being installed on the main directory so it thinks the subdirectory is a path for the main. If I go to the subdirectory example.mainsite.com I get "Network Access Message: The website cannot be found. Explanation: The IP address for the website you requested could not be found."

I was wondering if having clean URLs enabled on the main directory was causing problems.