The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris tip of the week: Two forms of apache redirect iBot Solaris BigAdmin RSS 0 11-21-2008 02:40 PM
APACHE rewrite / redirect URL ampo Web Programming, Web 2.0 and Mashups 2 10-27-2008 10:25 AM
APACHE rewrite / redirect URL ampo Security 1 10-13-2008 05:27 AM
Input file redirect in output path and want name as inputfilename_new.txt Sandeep_Malik Shell Programming and Scripting 6 09-17-2008 06:16 PM
Apache Redirect Transparently alfredo HP-UX 2 03-27-2008 09:33 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2009
aneuryzma aneuryzma is offline
Registered User
  
 

Join Date: May 2009
Posts: 60
why do apache redirect me to the same path ?

Hi,

everything is working perfectly. I have one more question.
Is it possible to specify a file instead of a directory in DocumentRoot ? (see phpinfo.php in the example).
Is it a correct procedure ?

Code:
<VirtualHost www.patrick.dev:80>
    ServerAdmin patrick.diviacco@gmail.com
    DocumentRoot "/Users/aneuryzma/Sites/phpinfo.php"
    ServerName www.patrick.dev
    ErrorLog "/private/var/log/apache2/drupalpatrick.dev-error_log"
</VirtualHost>
thanks

Last edited by aneuryzma; 05-22-2009 at 05:31 AM..
  #2 (permalink)  
Old 05-25-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
Quote:
Is it possible to specify a file instead of a directory in DocumentRoot ?
No.

You can, however, say something like:
Code:
<VirtualHost www.patrick.dev:80>
ServerAdmin patrick.diviacco@gmail.com
DocumentRoot "/Users/aneuryzma/Sites/"
DirectoryIndex phpinfo.php
ServerName www.patrick.dev
ErrorLog "/private/var/log/apache2/drupalpatrick.dev-error_log"
</VirtualHost>
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0