Apache Server configuration support - $50 if you sort out my silly apache problem!

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2007 > $50 if you sort out my silly apache problem!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author $50 if you sort out my silly apache problem!
william.hooper@gmail.com

2007-10-12, 1:26 pm

I am kind of in a rush and have wasted hours looking on google how to
do this so will happily pay $50 to somone instead. I reckon for
someone who knows what they are doing its very easy job... This offer
expires in two hours when I leave to go home. It's boring at work and
I have remote desktop into my home network setup to get this working
for the weekend.

I want to set up two directories, and route all requests to
mydomain.com to one directory, and all requests to myotherdomain.com
to another. thats all!

Currently I have apache running but all the requests goto the same
place.

Here is my exact current apache.conf file that I have to edit:

(Note the platfrom in a qnap TS-109 NAS. I have winSCP and putty all
setup so I can change the config file etc. Just need to know what to
do).



#ServerType standalone
ServerRoot "/usr/local/apache"
#LockFile /usr/local/apache/logs/apache.lock
PidFile /usr/local/apache/logs/apache.pid
ScoreBoardFile /usr/local/apache/logs/apache.scoreboard
#ResourceConfig /usr/local/apache/conf/srm.conf
#AccessConfig /usr/local/apache/conf/access.conf
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
#Listen 3000
#Listen 12.34.56.78:80
#BindAddress *
LoadModule php5_module libexec/libphp5.so
Port 80
User guest
Group guest
ServerAdmin ken@NasARM
#ServerName www.example.com
DocumentRoot "/share/Qweb"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/share/Qweb">
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php
</IfModule>

AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

UseCanonicalName On

<IfModule mod_mime.c>
TypesConfig /usr/local/apache/conf/mime.types
</IfModule>

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/local/apache/conf/magic
</IfModule>

HostnameLookups Off
ErrorLog /usr/local/apache/logs/apache_error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /usr/local/apache/logs/apache_access_log common
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The
format is
# Alias fakename realname
#
<IfModule mod_alias.c>
Alias /Qmultimedia/ "/home/httpd/Qmultimedia/"
Alias /v3_menu/ "/home/httpd/v3_menu/"
ScriptAlias /cgi-bin/Qmultimedia/ "/home/httpd/cgi-bin/Qmultimedia/"
ScriptAlias /Qmultimedia/cgi-bin/ "/home/httpd/Qmultimedia/cgi-bin/"
<Directory "/home/httpd/Qmultimedia">
Options MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/httpd/v3_menu">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/httpd/Qmultimedia/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory "/home/httpd/cgi-bin/Qmultimedia/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_autoindex.c>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

#
# Document types.
#
<IfModule mod_mime.c>
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-TW .zh-tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru
ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler send-as-is asis
AddHandler imap-file map
AddHandler type-map var

</IfModule>

<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-
response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>

william.hooper@gmail.com

2007-10-12, 1:26 pm

I tried adding:

NameVirtualHost *

<VirtualHost *>
DocumentRoot "/share/Qweb/whooper"
ServerName any_thing_else.com
</VirtualHost>

<VirtualHost *>
DocumentRoot "/share/Qweb/"
ServerName willyhoops.com
</VirtualHost>

to the end but no luck. it just ignores this

william.hooper@gmail.com

2007-10-12, 7:26 pm

I will try adding this to the bottom of the file:

NameVirtualHost *

<VirtualHost *>
DocumentRoot "/share/Qweb/site1"
ServerName site1.local
</VirtualHost>

<VirtualHost *>
DocumentRoot "/share/Qweb/site2"
ServerName site2.local
</VirtualHost>

william.hooper@gmail.com

2007-10-13, 1:21 pm

I really wish there were people who would just tell you exactly what
to do for $50 and save us all a lifetime of hell.

anyway i finnaly sorted out my problem with the qnap TS-109 NAS
hosting multiple domains / web sites. my idiots guide / virtual hosts
for dummies / tutorial for people who own a qnap and don't want to
spend days playing with the darn thing is here:

http://forum.qnap.com/phpbb2/viewto...er=asc&start=20

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com