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

  • Home
  • SEARCH
  • 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 8379507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:12:27+00:00 2026-06-09T16:12:27+00:00

i tried using the vhost file ( httpd-vhosts.conf ) in apache to define different

  • 0

i tried using the vhost file (httpd-vhosts.conf) in apache to define different directories for different domain names. i defined it as follow and restarted apache.

no success – when i try to reach http://www.domain.mx it does not take me to the path mentioned in the documentroot.

i made sure the vhost file is included in the httpd.conf file and its module is loaded.

what am i doing wrong?

NameVirtualHost 12.12.65.90:80
NameVirtualHost domain.mx:80
NameVirtualHost www.domain.mx:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost 12.12.65.90:80>
    ServerAdmin webmaster@23.21.65.90
    DocumentRoot "C:/xampp/htdocs/"
    ServerName 12.12.65.90
    ServerAlias http://12.12.65.90/
    ErrorLog "logs/general-errors.log"
    CustomLog "logs/general.log" combined
</VirtualHost>

<VirtualHost domain.mx:80>
    ServerAdmin webmaster@domain.mx
    DocumentRoot "/taska/"
    ServerName domain.mx
    ServerAlias domain.mx
    ErrorLog "logs/domain-errors.log"
    CustomLog "logs/domain.log" combined
</VirtualHost>


<VirtualHost www.domain.mx:80>
    ServerAdmin webmaster@domain.mx
    DocumentRoot "/taska/"
    ServerName www.domain.mx
    ServerAlias www.domain.mx
    ErrorLog "logs/domain-errors.log"
    CustomLog "logs/domain.log" combined
</VirtualHost>
  • 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-06-09T16:12:29+00:00Added an answer on June 9, 2026 at 4:12 pm

    apparently this is the way to do it (using serverAlias):

    NameVirtualHost *:80
    
    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    #
    <VirtualHost *:80>
        ServerAdmin webmaster@domain.mx
        DocumentRoot "c:/xampp/htdocs/taska"
        DirectoryIndex taska.html
        ServerName domain.mx
        ServerAlias domain.mx
        ErrorLog "logs/domain-errors.log"
        CustomLog "logs/domain.log" combined
    </VirtualHost>
    
    
    <VirtualHost *:80>
        ServerAdmin webmaster@domain.com
        DocumentRoot "c:/xampp/htdocs/taska"
        DirectoryIndex taska.html
        ServerName www.domain.mx
        ServerAlias *.domain.mx
        ErrorLog "logs/domain-errors.log"
        CustomLog "logs/domain.log" combined
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerAdmin webmaster@21.11.65.90
        DocumentRoot "c:/xampp/htdocs/"
        ServerName localhost
        ServerAlias 21.11.65.90
        ErrorLog "logs/general-errors.log"
        CustomLog "logs/general.log" combined
    </VirtualHost>
    
    <Directory C:/xampp/htdocs/taska>
      Order Deny,Allow
      Allow from all
    </Directory>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried using curl syntax: curl http:// localhost:8983/solr/update/csv?stream.file=/usr/local/src/apache-solr-3.6.0/example/exampledocs/my+file.csv&separator=;&stream.contentType=text/plain;charset=utf-8 with no luck. I get: -bash:
I tried using uiimport to load a file to the base workspace.....It worked first
I tried using Javascript on demand to override cross domain problems. So now I
I tried using a parameter in an emit block within a user defined action
I tried using arrays but I don't need every single element, and so it
I tried using date/time, time, but it doesn't help. Exception Details: System.Web.HttpException: DataBinding: 'DatePickerControl.DatePicker'
I tried using the following code for a HTML page, but it doesn't work.
I tried using juggernaut cocoa: https://github.com/fpotter/juggernaut-cocoa Added this line to my code: JuggernautClient *client
I tried using axis2 1.6 (and nightly 1.7) to generate Java code from the
I tried using make defconfig to compile the kernel, but as expected, it failed

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.