LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2018, 09:16 PM   #1
agustinrojen
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Rep: Reputation: Disabled
Changing 192.168.1.1/joomla to www.example.com/joomla.


I have installed ubuntu linux server 14.04 and installed joomla inside. For e.g. I have an IP on my server, 192.168.1.1 and the joomla folder so I can access it with other devices within the same network by just typing 192.168.1.1/joomla on browser.

My question is..

How do I change 192.168.1.1/joomla into www.example.com/joomla.

Im really stuck on where to start. Please give me thoughtful ideas and recommendations. Thank you!
 
Old 01-30-2018, 01:28 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,104

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
Quote:
Originally Posted by agustinrojen View Post
I have installed ubuntu linux server 14.04 and installed joomla inside. For e.g. I have an IP on my server, 192.168.1.1 and the joomla folder so I can access it with other devices within the same network by just typing 192.168.1.1/joomla on browser.

My question is..

How do I change 192.168.1.1/joomla into www.example.com/joomla.

Im really stuck on where to start. Please give me thoughtful ideas and recommendations. Thank you!
First, you really should update your server to the latest version of Ubuntu.

https://wiki.ubuntu.com/Releases

This may help with your domain name: https://unix.stackexchange.com/quest...nd-domain-name
 
Old 01-30-2018, 04:21 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,043

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
In addition, you can assign a static ip address to the server and add an entry in each devices hosts file or run a local DNS server. dnsmasq is easy to setup.
 
Old 01-30-2018, 08:57 AM   #4
agustinrojen
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi. Thank you for the reply. I have manage to change my hostname into adminserver in etc/hostname

Im having trouble with this one.. Can you help me?

Setting your domain:

Then, in /etc/resolvconf/resolv.conf.d/head, you'll add then line search your.domain.name (not your FQDN, just the domainname).

Then, run sudo resolvconf -u to update your /etc/resolv.conf (alternatively, just reproduce the previous change into your /etc/resolv.conf).
 
Old 01-30-2018, 10:32 AM   #5
agustinrojen
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Mr. michaelk. I am just linux newbie. I really can't understand what you're saying. Can you explain it more simple? thank you.
 
Old 01-31-2018, 07:57 AM   #6
tocii.
LQ Newbie
 
Registered: Jan 2018
Distribution: Ubuntu, Mint
Posts: 27

Rep: Reputation: Disabled
Hello. You need to install Domain Server on your Ubuntu.

Here is a documentum, how you can do that: https://help.ubuntu.com/community/BIND9ServerHowto
 
Old 02-02-2018, 10:23 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,941
Blog Entries: 1

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
The lazy local machine only way is to change /etc/hosts.

$ sudo bash -c "echo 192.168.1.1 www.example.com >> /etc/hosts"

Otherwise you need whatever gives you DNS to have it in their records. Which costs some change and uses someone elses service like domain.com enom.com and a few other registrars. Or requires more local options like dns_masq, squid, bind, depending on how your system is setup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create your own Website with Joomla (Install Joomla on Linux) LXer Syndicated Linux News 0 01-22-2018 12:33 PM
LXer: The Joomla! Project Announced Joomla! Framework LXer Syndicated Linux News 0 12-11-2013 06:00 AM
LXer: Joomla! 1.5: A User's Guide plus Fundamentals of Joomla! Video LXer Syndicated Linux News 0 10-26-2009 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration