I am trying to set an Apache directive from the Virtualmin control panel of User’s VPS but don’t know how to actually edit a directive or add an option to the directive once created.
Under Virtualmin - Services - Configure Website
Create Per-Directory,Files or Location Options:
Type Directory
Regexp? Exact match
Path: RailsEnv
These steps do indeed create a Directory Directive, I now what to add the following option to the directive but don’t know how to do so:
RailsEnv development
If as sudo I amnually edit the apache virtual host conf file and add the directive option, everything works as I expected to. The problems is I don’t know how to add the directive option from the VPS Visrtualmin control panel.
First, thank you so much for replying. I followed your suggestion to change the templates and that would be indeed better than nothing at all which where I stand right now. I still think there must be a way to allow to enter directive details so that the individual users can add them or change them. The way you suggested at least I can get the directives in but individual users can not Edit Manually so they are stuck anyways.
Do you know how to allow users to Manually edit directives? I can find where to do so either.
After a lot of trial and error I finnaly got Ruby on Rails installed and working pretty good in a VPS using Phusion Passenger and this is the only missing part. After I discover how to do it I will post a blog so that others can benefit should they want to install a RoR app in virtualmin GPL.
The whole .htaccess realm exists entirely due to the problem you’re seeing right now
Beyond that, I think Virtualmin attempts to limit how much say a user has in what goes into the Apache config. For example, a privileged user could use Services -> Configure Website -> Show Directives -> Edit Directives to manually make changes, but Virtualmin prevents most users from being able to make ad-hoc changes there due to security reasons.