Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6835405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:13:42+00:00 2026-05-26T23:13:42+00:00

My Apache config: DocumentRoot /var/www <VirtualHost *:80> Alias /T /var/www/Test <Directory /var/www/Test> Options Indexes

  • 0

My Apache config:

DocumentRoot /var/www
<VirtualHost *:80>
    Alias /T "/var/www/Test"
    <Directory /var/www/Test>   
        Options Indexes FollowSymLinks MultiViews
        #AllowOverride ALL
        Order allow,deny
        Allow from all
    </Directory>    
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel debug
    CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost>

<VirtualHost *:80>
    SetEnv APPLICATION_ENV "development"
    Alias /N "/var/www/NCAA/public"
    <Directory /var/www/NCAA/public>        
        Options Indexes FollowSymLinks MultiViews
        AllowOverride ALL
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel debug
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

My .htacess file in /var/www/NCAA/public:

RewriteEngine On
RewriteBase   /N/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

I can go to files in localhost/T, but I get 404 for /localhost/N I get this in my apache log:

[Sun Nov 20 16:32:37 2011] [error] [client 127.0.0.1] File does not exist: /var/www/N,

so I’m not sure what I am doing wrong. I want 1 domain to be a regular domain with an alias and the other is a Zend app with a mod rewrute for the index.php

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:13:43+00:00Added an answer on May 26, 2026 at 11:13 pm

    Do you really need the NCAA app to be accessed under http://localhost/N? Is it acceptable to access it under a different url, like http://local.ncaa/?

    If so, then a virtual host entry could look like:

    <VirtualHost *:80>
        DocumentRoot /var/www/NCAA/public
        ServerName local.ncaa
        SetEnv APPLICATION_ENV development
        <Directory /var/www/NCAA/public>        
            Options Indexes FollowSymLinks MultiViews
            AllowOverride ALL
            Order allow,deny
            Allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel debug
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    

    Then the standard ZF .htaccess can be used (no rewrite base required):

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are my config files, /etc/apach2/sites-availabled/currentcost <VirtualHost *:20108> ServerAdmin webmaster@localhost DocumentRoot /var/www WSGIScriptAlias /currentcost
I have an apache config file, <VirtualHost *:443 > SSLEngine on SSLCertificateFile ... SSLCertificateKeyFile
I've got a VirtualHost directive in /etc/apache2/openpanel.d/www.example.com.conf : <VirtualHost *:80> ServerAdmin jon@example.com DocumentRoot /home/openpanel-admin/sites/www.example.com/public_html
I am trying to change the DocumentRoot in httpd.conf from /var/www to /var/www/shop just
I have a LAMP server configured with DocumentRoot /var/www changed to VirtualDocumentRoot /var/www/%-3/ in
I have two environment variables in apache config, I want to concatenate them into
I'm looking for a way to programatically detect the location of the Apache config
http://logging.apache.org/log4net/release/config-examples.html Given the log table here: CREATE TABLE [dbo].[Log] ( [Id] [int] IDENTITY (1,
I have installed Apache and Subversion on Windows. My config is: <Location /svn> DAV
I have a java app that uses log4j. Config: log4j.rootLogger=info, file log4j.appender.file=org.apache.log4j.DailyRollingFileAppender log4j.appender.file.File=${user.home}/logs/app.log log4j.appender.file.layout=org.apache.log4j.PatternLayout

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.