Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default kiwix-serve's rootLocation to "/" #571

Merged
merged 2 commits into from
Jul 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/server/kiwix-serve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ int main(int argc, char** argv)
setup_sighandlers();
#endif

std::string rootLocation = "";
std::string rootLocation = "/";
kiwix::Library library;
unsigned int nb_threads = DEFAULT_THREADS;
std::vector<std::string> zimPathes;
Expand Down Expand Up @@ -393,7 +393,7 @@ int main(int argc, char** argv)
exit(1);
}

std::string url = "http://" + server.getAddress() + ":" + std::to_string(server.getPort()) + "/" + rootLocation;
std::string url = "http://" + server.getAddress() + ":" + std::to_string(server.getPort()) + rootLocation;
std::cout << "The Kiwix server is running and can be accessed in the local network at: "
<< url << std::endl;

Expand Down