now I'm running rails app on Apache. My rails app is placed at /var/www/html/railsapp/ and its written in httpd.conf. It completely works fine and show app when I access to http://example.com/
One more thing that I want is "phpMyAdmin" beside rails app. phpMyAdmin is currently installed at /usr/share/phpMyAdmin
I created phpMyAdmin.conf in /etc/httpd/conf.d in which, I wrote those below
Alias /phpmyadmin/ "/usr/share/phpMyAdmin/"
<Directory "/usr/share/phpMyAdmin/">
Options -Indexes FollowSymLinks MultiViews Includes ExecCGI
AcceptPathInfo On
AllowOverride All
Allow from all
</Directory>
After restarted Apache, it still shows rail's routing error when I try to access http://example.com/phpmyadmin
It seems rails recognize "phpmyadmin" part as rail's controller name. Can anyone help me about this?
I want to access to phpmyadmin when I go to example.com/phpmyadmin and I wanna access to rails app when I go to example.com
Thanks!!
It works for me when I Added the below line in /etc/apache2/httpd.conf
<VirtualHost *:80>
ServerName mysql.yourservername.com
<Directory "/usr/share/phpMyAdmin">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
have a look at this
To sum it up, you have to modify your httpd.conf :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.