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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:47:25+00:00 2026-05-30T19:47:25+00:00

Under windows 7, I can not use default port 80, so 81 instead. I

  • 0

Under windows 7, I can not use default port 80, so 81 instead.
I configured my httpd.conf, like:

<VirtualHost *:81>
DocumentRoot "G:/bitnami/htdocs/test"
ServerName test.dev
ServerAlias test.dev www.test.dev
    <Directory "G:/bitnami/htdocs/test">
        Order allow,deny
       Allow from all
    </Directory>
</VirtualHost>

I can only access the site with test.dev:81, but not test.dev or http://www.test.dev
It seems that ServerAlias do not do anything when port is not 80.

I have added relevant code to my hosts file, but no use:

127.0.0.1   127.0.0.1 localhost test.dev www.test.dev

How to force apache server URL with port appended? I want test.dev, but not work

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-30T19:47:26+00:00Added an answer on May 30, 2026 at 7:47 pm

    As far as I know you can’t. Quoting from RFC1738, the URL specification:

    port
        The port number to connect to. Most schemes designate
        protocols that have a default port number. Another port number
        may optionally be supplied, in decimal, separated from the
        host by a colon. If the port is omitted, the colon is as well.
    

    This means that if the port number isn’t specified in the URL, the default port is implied. For http the default port is 80, so any other port has to be specified.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I get a threads suspend count under Windows CE, using C or Visual
In Eclipse, under Windows -> Preference -> Java -> Code Style , you can
Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled) As I understand
Under Windows there are some handy functions like QueryPerformanceCounter from mmsystem.h to create a
I'm trying to build CGAL for windows to use in my project under Visual
I use Launch4j as a wrapper for my Java application under Windows 7, which,
I could not start an OpenCV application under Windows. Given the following simple OpenCV
Under Windows Vista (2008 and Seven), an application cannot write in Program Files Folder.
Under Windows XP WPF true 3D content (which is usually displayed using the Viewport3D
Under Windows Vista, when I check whether my current user account is in Administrators

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.