I have a problem in multisite with Drupal 7.26. The name of the site is multisite, and the IP is 192.168.1.99.
I created a folder that hosts a new site (/var/www/multisite/sites/site1), copied the settings.php file into the site1 folder; the
127.0.0.1 site1 line is present in the hosts file.
This is the content of /etc/apache2/sites-available/site1.
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName site1 DocumentRoot /var/www/multisite/sites/site1 <Directory /> Options FollowSymLinks AllowOverride All </Directory> </VirtualHost>
I executed the following commands.
sudo a2ensite site1 sudo /etc/init.d/apache2 reload
If I use 192.168.1.99/multisite/, it works; if I use 192.168.1.99/site1, I get the following error:
The requested URL /site1 was not found on this server. Apache/2.2.22
(Ubuntu) Server at 192.168.1.99 Port 80
What did I do wrong?
should i add any redirect base code in .htaccess file?
Solution: Give Symbolic link form mulitsite to site2 Executed that command line ln -s /var/www/multisite /var/www/site2 Rename example.sites.php to sites.php $sites['192.168.1.99.site1'] = 'site1'; put this line in sites.php
I got a result . Thanks for post the answers this questions
sudo service apache2 restart.
sudo /etc/init.d/apache2 reloadhas the same effect on vhost config