Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > Suggestions > Topic : Apache Virtual Host Configuration - too complex - suggestion



Threaded Mode | Print  

 Apache Virtual Host Configuration - too complex - suggestion (2 Replies, Read 4479 times)
keithy
Group: Member
Post Group: Newbie
Posts: 3
Status:
Quote
UseCanonicalName Off

VirtualDocumentRoot {$path}/www/%0

DirectoryIndex start.xhtml index.html

<Directory "{$path}/www/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Whenever I have set up multiple websites on a single server this is (approximately) ALL of the config that I have ever needed. I am trying to adopt this in AMPPS, but I am not fully understanding the apparently over complicated setup that AMPS uses.

Virtualhost names are placed into /etc/hosts as 127.0.0.1 www.myserver.com for local development or left to dns for using in a deployed scenario.

Each host has a directory under {$path}/www/, e.g. www/www.myserver.com/... which under my scheme would work, but does not appear to work at all with the original AMPPS set up out of the box.

Can you help me understand why AMPPS doesn't use this much simpler approach out of the box?
IP: --   

Apache Virtual Host Configuration - too complex - suggestion
keithy
Group: Member
Post Group: Newbie
Posts: 3
Status:
Ok, as long as I comment out the #Include vhosts line which contains the AMPPS vhost schem things appear to work.

Suggestion why dont you pront the output of

sudo /Applications/AMPPS/apache/bin/httpd -S

somewhere in the domain management part of AMPPS

and what about

sudo /Applications/AMPPS/apache/bin/httpd -t

cheers k.
IP: --   

Apache Virtual Host Configuration - too complex - suggestion
keithy
Group: Member
Post Group: Newbie
Posts: 3
Status:
My latest incarnation of simple virtual hosting.

Quote
# Virtual hosts
#Commented Out the following
#Include conf/extra/httpd-vhosts.conf

#Added
VirtualDocumentRoot {$path}/www/%0
VirtualScriptAlias {$path}/www/%0/cgi-bin/

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is October 20, 2017, 9:03 am.

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