Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Advanced vhost settings



Threaded Mode | Print  

 Advanced vhost settings, How do I manipulate vhost settings? (3 Replies, Read 2514 times)
crazz
Group: Member
Post Group: Newbie
Posts: 4
Status:
I usually build my own dev-environments from scratch so AMPPS is a huge leap. But it seems like the best way to free up more time for coding :-) Great work!

But... I can't seem to figure out how to manipulate the vhost settings. Well, of course I've found httpd-vhosts.conf but it seems (as noted in the file) to be overwritten by AMPPS. I need to be able to set a number of php_value and php_admin_value settings (xdebug settings, include-paths, rewrite rules and lots of other things).

I really hope it's possible somehow since it will be a definite showstopper and I would hate that!

TIA!
IP: --   

Advanced vhost settings
crazz
Group: Member
Post Group: Newbie
Posts: 4
Status:
Seems like manually adding a vhost file and then including it in httpd.conf is the only way...

http://www.softaculous.com/board/index.php?tid=5131&title=Change_Vhosts_Config
IP: --   

Advanced vhost settings
crazz
Group: Member
Post Group: Newbie
Posts: 4
Status:
Please use this on your own risk... :-) I don't have much AMPPS experience yet. Please correct me in case it's a bad approach from a AMPPS point of view!

The following does not concern itself with hostnames! I'm using an external DNS server but you might want to tinker a bit with your vhost file.

How-to for v3.4 (done on Windows):

1) Copy apache/conf/extra/httpd-vhosts.conf to apache/conf/extra/_custom-vhosts.conf (since you might want a template) (prefixed '_' makes it easy to spot when viewing files)

2) Modify apache/conf/extra/_custom-vhosts.conf as needed. Don't forget log-files etc. Be thorough!

3) AMPPS application -> Apache -> Configuration. This will open httpd.conf

4) Find the "# Virtual hosts" section. Append this right after inclusion of httpd-vhosts.conf:
Include conf/extra/_custom-vhosts.conf

5) Reload apache

Now you should be able to load your site!
IP: --   

Advanced vhost settings
crazz
Group: Member
Post Group: Newbie
Posts: 4
Status:
Btw... In case you'll need multiple vhost files there's an easier way...

1) Create a subdir for your vhost files:
apache/_custom_vhost_files

2) In httpd.conf you'll simply include that dir with a pattern matching appropriate files:
Include _custom_vhost_files/*.vhost.conf

Now you can just put *.vhost.conf files into the dir.

With both approaches it's important to notice that you can no longer manage them from the webinterface!
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 23, 2024, 7:20 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.166