• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Mod Rewrite

A

amshene

Guest
I've done all kinds of searches on the forum and haven't found anything about this, so my apologies if I missed it.

I just upgraded my vhosts with godaddy and am now fedora 7/Apache 2.2.8/PHP 5.2.4/Plesk 8.3

I have one domain that is using mod rewrite which worked perfectly before the upgrade and now I can't get it to work.

I know I have to change a .conf file but I didn't keep my notes from when I did it 2 years ago. I thought all it I needed to do was change the /etc/httpd/conf/httpd.conf file but that didn't work ..

so my question is, is there a different file that has to be changed? if so, what is the full path? and/or is the actual change to the file different from the previous versions?

I'm pulling my hair out so any advice is welcome ... Thanks!
 
I've spent all morning trying different things and nothing is working. I'm hoping that it is simply a path problems and someone here will have the correct info.

first, I should mention that the rewrite rules are in an .htaccess file and those are the same rules that worked before the upgrade.

so this is what I did

I create a vhost.conf file in the directory /var/www/vhosts/DomanName/conf/

Then in the vhost.conf file I added the following code

<Directory /var/www/vhosts/domain name/>
Options +FollowSymLinks
AllowOverride All
</Directory>


That didn't seem to work so in the
/etc/httpd/conf/httpd.conf file after the

<Directory>
Options FollowSymLinks
AllowOverride none
</Directory>

I added

<Directory /var/www/vhosts/domain name/>
Options +FollowSymLinks
AllowOverride All
</Directory>

I did restart Apache after each change.

any other suggestions are very welcome .. Thank you!
 
anyone have any suggestions? I've still haven't been able to get this to work so any advice is very welcome! Thanks!
 
FYI after creating vhost.conf you need to run a command to rebuild the site httpd.conf file:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain_name.com

Not sure if that will fix your problem but vhost.conf won't be taken into account until then. (i think rewrites should be on by default, they are on my machines)
 
I am having the same problem but to make maters worse I can not ftp into the /conf dir on the users domain nor can I access that dir in the plesk admin domain files app, it says that I do not have permission
can anyone help with that?

-d
 
dseoane .. you have to use shell access (telenet or SSH) such as Putty to change those files or to create new ones ...

breun & dillybar1 ... that is interesting that you didn't have to do anything to either file for mod rewrite to work. I had nothing in my notes from the original installation of this software, about what changes had to be made to the conf files for it to work, so now I'm wondering if there is another issue with the upgrade to php5 and the software? everything that doesn't use the rewrite is working just fine. grrrrr ... more research!

thanks for your information ...
 
ok fixed that... now for the question of the day, Where can that be changed so that all domains created have the proper permissions on the conf dir?
I looked in the admin default (so I could change it in the skeleton) but there is no conf dir, I am assuming that the dir is created by a script somewhere, when we create a domain the root owns the conf folder so no one can access them.

thanks

-d
 
dseoane, did you fix your mod re-write problem? if so, what did you do to fix it?
 
A am still awaiting the customers reponse.
but so far here is what we have learned
1. make sure to uncomment the line #LoadModule rewrite_module /dir/mod_rewrite.so in the httpd.conf file
2. Restart apache
3. put your variables into a file called vhost.conf in the domains /conf dir

so far that is all that I believe that should make it work.
I will post a follow up ASAP..
-d
 
hmm, I just checked and mine isn't commented out ... but just to be sure, the file that I'm looking at is:

/etc/httpd/conf/httpd.conf

and the exact lines is:

LoadModule rewrite_module_modules/mod_rewrite_so


is that what you meant by dir/ ?

Hope that solves your problem! aaaagggghhhh!
 
yes that is the line in the httpd.conf file

We restarted apache after adding the vhost.conf file to the domains conf dir and still no love for mod rewrite.

anyone else have any ideas?

-d
 
On a default installation a client can just put some mod_rewrite rule in a .htaccess file (or we can put it in a vhost.conf file) and it works. Maybe there's an error in your mod_rewrite code?
 
dseoane, did you ever get it to work? I've had to do some other things so didn't work on my problem much, until this morning.

first, I tested if mod_rewrite is actually working. For a simple test go here
http://forum.modrewrite.com/viewtopic.php?p=10796#10796

the good news is that I discovered that it is working ... so now I have to figure out the real problem.
 
Fixed my problem

After upgrading to FC7, Plesk 8.3, Apache 2.2.8, i was having the same problems. It took me awhile but my problem was that i had rewrite rules in both the .htaccess file and in the vhost.conf. After i combined the two and deleted the .htaccess everthing works now.

Hope this helps
 
Back
Top