Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have used virtualhost file in drupal to create multiple sites under one server. Also to remove /drupal from the url.

ex: 202.45.198.98/drupal this is how my URL looks like when ever I visit my website

After creating new Virtual host file for my website, I can see my website without /drupal in url.

Now the problem only the first page is loaded I mean some matter but not images, drupal template or any other links.

  <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName mysite
    DocumentRoot /var/www/drupal

    <Directory /var/www/drupal/>
      Options FollowSymLinks
      AllowOverride All
      Order allow,deny
      allow from all
    </Directory>

    <Directory /var/www/drupal/>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
      <Directory "/usr/lib/cgi-bin/">
      AllowOverride All
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
      </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

     Alias /doc/ "/usr/share/doc/"
     <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny,allow
        Allow from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
     </Directory>

    </VirtualHost>

Above is my virtualhost file conent, could you tell am I missing anything in that? Also I have modified my setting.php file in drupal/sites/default/settings.php

    $base_url = my website address/drupal

Even after this I experience the same issue. Is there anything else I need to change.

Thanks.

share|improve this question
I've voted to move this question to ServerFault. More people there are qualified to answer your question. – Stephen Ostermiller Mar 7 at 13:39
Thanks stephen. Hope Ill get the answer – Venka Yeluri Mar 8 at 5:17

migrated from webmasters.stackexchange.com Mar 9 at 16:28

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.