Title: Virtual Host Issue?
Last modified: February 28, 2017

---

# Virtual Host Issue?

 *  Resolved [Znelson1989](https://wordpress.org/support/users/znelson1989/)
 * (@znelson1989)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/virtual-host-issue/)
 * _[ Moderator note: [moved to Fixing WordPress](https://wordpress.org/support/topic/please-use-how-to-and-troubleshooting-if-you-have-problems-after-installation/).]_
 * I have recently installed wordpress on my CentOS7 machine.
    Ideally I would like
   my wordpress site to be hosted on [http://www.zenels.com](http://www.zenels.com)
   however I am having some issues doing this.
 * Currently the wordpress folder is located in
    /var/www/zenelswordpress/wordpress
 * When I set this as the document root for my server the desired effect is achieved
   but when I attempt to use dashboard links to customize and edit my site they 
   are all set to something like zenels.com/wordpress/wp-admin.php which produces
   a 404 based on the current document root
 * If I set the document root to
    /var/www/zenelswordpress I am able to use the 
   dashboard buttons to navigate but zenels.com displays the apache2 test page.
 * What would be the best solution here?
 * EDIT: I should also mention that when I have the documentroot pointed at /var/
   www/zenelswordpress/wordpress I am able to access wp-admin by going to zenels.
   com/wp-admin and this works fine but is there a way to get the toolbar at the
   top of your page working?
    -  This topic was modified 9 years, 1 month ago by [Znelson1989](https://wordpress.org/support/users/znelson1989/).
    -  This topic was modified 9 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 1 month ago](https://wordpress.org/support/topic/virtual-host-issue/#post-8854763)
 * In settings->general, what do you have for the two URL fields? Did you make changes
   to the virtual hosting or URL *after* you first logged in to WordPress?
 *  Thread Starter [Znelson1989](https://wordpress.org/support/users/znelson1989/)
 * (@znelson1989)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/virtual-host-issue/#post-8854906)
 * Steve,
    I had no idea these settings existed it has been a while since I used
   WP. Thank you for the help editing these resolved my issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Virtual Host Issue?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Znelson1989](https://wordpress.org/support/users/znelson1989/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/virtual-host-issue/#post-8854906)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
