FAQ |
Kalender |
![]() |
#1 | |||
|
||||
Nykomling
|
Hi.
I'm currently trying to configure Apache 2.0.40 on a machine running Linux Redhat 9.0 (with PHP/mySQL). Since this is a publicly accessible server, I have created some virtualhosts for testing purposes, and for access to various functions. Also, it's within the VirtualHost configuration the problem arises. Dont get me wrong, the VirtualHosts are working, but only to a ceratin point (Description below). When i open f.ex. http://privat.sveg.servemp3.com a test page comes up, thats fine enough. Problem is that the test page should not come up. I've made a temporary index.php page containing the following code: Citat:
Citat:
Citat:
Please dont ask me if I've read the manuals, trust me, I've read them from beginning to end regarding the virtualhost directive, and Options direcetive, also documentroot. I dont mind replys in swedish, I'm just not sure how to exactly get my point made as I'm not that good at writing technical swedish. If anyone have experienced similar problems and have solved them, please, let me know. If you know of a friend that have had this problem, also please let me know. (Btw, if this is the wrong place to post this, I'm sorry) Thanks in advance for help/tips/pointers solving this problem. Best regards, Martin owner of www.oldgames.org hobby linux user, php programmer webdeveloper. |
|||
![]() |
![]() |
![]() |
#2 | |||
|
||||
Mycket flitig postare
|
Wn utvidgar
![]() Dags för en engelsk forumdel snart också? B) |
|||
![]() |
![]() |
![]() |
#3 | ||
|
|||
Klarade millennium-buggen
|
Try adding a / to the directory:
DocumentRoot /home/www/privat.sveg.servemp3.com/ You also might want to try the "serveralias" attribute just to make sure things are working: ServerAlias *.servemp3.com |
||
![]() |
![]() |
![]() |
#4 | |||
|
||||
Klarade millennium-buggen
|
try without :80 , like this...
And like qrazzy said, with a ending / added "Option all" , apache2 is somewhat different from Apache 1.x.x , may work better with that. NameVirtualHost 192.168.0.4 <VirtualHost 192.168.0.4> ServerName sveg.servemp3.com ServerAdmin [email protected] DocumentRoot /home/www/sveg.servemp3.com Options All ErrorLog /home/www/error_log </VirtualHost> <VirtualHost 192.168.0.4> ServerName privat.sveg.servemp3.com ServerAdmin [email protected] DocumentRoot /home/www/privat.sveg.servemp3.com Options All ErrorLog /home/www/error_privat_log </VirtualHost> |
|||
![]() |
![]() |
![]() |
#5 | ||
|
|||
Nykomling
|
thanks for the answers, will try them as soon as i'm home from work
![]() will let you know whether or not they worked. |
||
![]() |
![]() |
![]() |
#6 | ||
|
|||
Nykomling
|
Citat:
Citat:
But, I'm not saying you're incorrect, or that I'm incorrect, it's just that the above sentence can be misunderstood. |
||
![]() |
![]() |
![]() |
#7 | |||
|
||||
Klarade millennium-buggen
|
Citat:
Correct that all is default ![]() |
|||
![]() |
![]() |
![]() |
#8 | |||
|
||||
Administratör
|
Humn sounds more to me that .php may be excluded from the DirectoryIndex in httpd.conf
Citat:
I belive that the Document root should the fine according to the errormessage that points to /home/www/privat.sveg.servemp3.com/ Thomas
__________________
Snickare - Copenhagen - Stockholm - Shoppasmart - Bilverkstad - flig.ht/s - Stockholm - Nöje - Direct Flights - PopularHotels.com - TOBUY Sverige - Pengar.se. |
|||
![]() |
![]() |
![]() |
#9 | |||
|
||||
Supermoderator
|
I would try with the following basic settings to begin with, just to see if that works.
Kod:
NameVirtualHost * <VirtualHost *> DocumentRoot /home/www/sveg.servemp3.com/ ServerName sveg.servemp3.com ServerAlias www.sveg.servemp3.com </VirtualHost> <VirtualHost *> DocumentRoot /home/www/privat.sveg.servemp3.com/ ServerName privat.sveg.servemp3.com ServerAlias www.privat.sveg.servemp3.com </VirtualHost>
__________________
[ Finanstips.se | Riktnummer.se | Väderlek.se | 3W.se | WWWW.se ]
. [ Marbella.se | ValutaGraf.se | Virusprogram.se | Malta Bolag.se | Växlingskontor.se ] . |
|||
![]() |
![]() |
![]() |
#10 | |||
|
||||
Nykomling
|
Citat:
Citat:
Citat:
Thanks for all the suggestions/tips received. ![]() |
|||
![]() |
![]() |
Svara |
|
|