I have used virtualhost file in drupal to create multiple sites under one server. Also to remove /drupal from the url.
ex: 18.104.22.168/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.