Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 9th, 2014, 06:38 PM
KrazyKanuk KrazyKanuk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2014
Posts: 1 KrazyKanuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 43 sec
Reputation Power: 0
Apache virtualhost configuration help

I have a default configuration of apache 2.4.10 that was installed with the operating system (Slackware 14.1 64bit). Only thing I changed in the httpd.conf file is the servername and enabled loading of the userdir file (/etc/httpd/extra/httpd-userdir.conf) but not being able to enable mod_rewrite with the userdir without the use of .htaccess i disabled this and enabled virtualhosts instead.

Now I am faced with a problem. The default host shows the "It works" web page the virtualhost for user1 shows the expected website (default drupal site that was set up), the web page for user2 instead of showing the expected website shows the it works website. The 2 users virtualhosts are configured as name virtualhosts (also tried IP virtual hosts with same result) the virtual host that is not showing the correct web page will show it if I use the IP address. The DocumentRoot for all three point to a different location, only thing is instead of being /home/username it is /storage/users/username below is snippets from my /etc/httpd/extra/httpd-vhosts.conf

[quote]
One that don't work
<VirtualHost *:80>
ServerName roxy.lan
ServerAdmin
ServerAlias 192.168.2.102
DocumentRoot /shared/users/roxy/public_html
ScriptAlias /cgi-bin/ /shared/users/todd/cgi-bin
Alias /db_admin/ /shared/db_admin/
LogFormat "%h %l %u %t \"%r\" %s %b" common
LogFormat "%h %l %u %t \"%r\" %>s \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog /var/log/httpd/todd/error_log
CustomLog /var/log/httpd/roxy/access_log common
CustomLog /var/log/httpd/roxy/referer_log referer
CustomLog /var/log/httpd/roxy/agent_log agent
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
DirectoryIndex index.php index.htm index.html
</VirtualHost>

One that works
<VirtualHost *:80>
ServerName todd.lan
ServerAdmin
ServerAlias 192.168.2.101
VirtualDocumentRoot /shared/users/todd/public_html
ScriptAlias /cgi-bin/ /shared/users/roxy/cgi-bin
Alias /db_admin/ /shared/db_admin/
LogFormat "%h %l %u %t \"%r\" %s %b" common
LogFormat "%h %l %u %t \"%r\" %>s \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog /var/log/httpd/todd/error_log
CustomLog /var/log/httpd/todd/access_log common
CustomLog /var/log/httpd/todd/referer_log referer
CustomLog /var/log/httpd/todd/agent_log agent
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
DirectoryIndex index.php index.htm index.html
</VirtualHost>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache virtualhost configuration help


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap