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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:15:19+00:00 2026-06-17T20:15:19+00:00

First of all, I’m on ubuntu 12.10 and running latest apache patch. I know

  • 0

First of all, I’m on ubuntu 12.10 and running latest apache patch. I know how to access the default localhost directory of my server from other computers. When I type in 192.168.1.** in a different computer, I can access the /var/www/ directory.

But what if I want to appoint that to a different directory? Where and how do I modify it? hosts, conf.d etc? And how can I access it with a domain name instead of the IP? Thanks ahead.

  • 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-17T20:15:20+00:00Added an answer on June 17, 2026 at 8:15 pm

    Look in /etc/apache2/sites-available. You will most likely find a file named default and another named default-ssl. The DocumentRoot can be changed within this file. Remember to restart Apache…

    sudo service apache2 restart
    

    Or…

    sudo apache2ctl graceful
    

    Or…

    sudo /etc/init.d/apache2 reload
    

    It’s not unusual to have several virtual hosts listed in sites-available, and remember that these configs have to have symbolic links in sites-enabled in order to be seen by Apache.

    A Virtual Host file looks something like this…

    Listen 80
    <VirtualHost *:80>
        DocumentRoot /www/example1
        ServerName www.example.com
    
        # Other directives here
    </VirtualHost>
    

    Further reading: Apache Documentation – Virtual Hosts

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

Sidebar

Related Questions

First of all, I'm quite new to the Android and JAVA world (coming from
first of all i would like to say i know its probably an easy
First of all I don't know If controller is the right word. What I
I have this code below, with which I select first all id's from table
First of all, I know how to build a Java application. But I have
First of all, I don't know if this should stay in SO or go
while upgrading from Ubuntu 10.04LTS to 12.04LTS, we kept all necessary configurationfiles (svn, trac,
First of all, this isn't for a keylogger, it's for an input in a
first of all some details: I configured security as below in web.xml view plaincopy
First of all there is probably a question like this already but i couldn't

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.