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 6206585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:28:35+00:00 2026-05-24T05:28:35+00:00

I’ve a problem with my apache server. I just did a fresh install(debian 6.0).

  • 0

I’ve a problem with my apache server.

I just did a fresh install(debian 6.0).

I created two config files: mysite.com and dev.mysite.com in /etc/apache2/sites-available, I enabled them with the a2ensite command, and I reloaded the server(/etc/init.d/apache2 reload)

I modified my host file to redirect the two requests to my server. I’ve no problem when trying to reach mysite.com, but when I try to access dev.mysite.com I get the content of mysite.com.

Here are my config files:

part of apache2.conf

# Include ports listing
Include ports.conf

# Include the virtual host configurations:
Include sites-enabled/*

the ports.conf file

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

the sites-available/mysite.com file:

<VirtualHost *>
        ServerAdmin web@mydomain.com
        ServerName www.mysite.com
        ServerAlias mysites.com
        ServerAlias www.mysites.com
        ServerAlias mysite.com
        DocumentRoot /media/Data/www/mysiteCom
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /media/Data/www/mysiteCom>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog /var/log/apache2/error_mysiteCom
        LogLevel warn
        CustomLog /var/log/apache2/access_mysiteCom combined
        ServerSignature Off
</VirtualHost>

my sites-available/dev.mysite.com file:

<VirtualHost *>
        ServerAdmin web@mydomain.com
        ServerName dev.mysite.com
        ServerAlias dev.mysites.com
        DocumentRoot /media/Data/www/devMysiteCom
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /media/Data/www/devMysiteCom>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog /var/log/apache2/error_devMysiteCom
        LogLevel warn
        CustomLog /var/log/apache2/access_devMysiteCom combined
        ServerSignature Off
</VirtualHost>

Any idea of what I did wrong?

  • 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-24T05:28:37+00:00Added an answer on May 24, 2026 at 5:28 am

    I found my error.

    In facts, it seems to be mandatory to mention which port will be accessed, so I had to set it in the VirtualHost:

    <VirtualHost *:80>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a bunch of posts stored in text files formatted in yaml/textile (from

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.